Skip to content

Commit

Permalink
Fikset tester og endret package navn for influxdb.
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-santa committed May 18, 2021
1 parent 7015125 commit 71a4d29
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 149 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.personbruker.dittnav.common.metrics.influx
package no.nav.personbruker.dittnav.common.metrics.influxdb

import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.personbruker.dittnav.common.metrics.influx
package no.nav.personbruker.dittnav.common.metrics.influxdb

data class InfluxConfig (
val hostName: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.personbruker.dittnav.common.metrics.influx
package no.nav.personbruker.dittnav.common.metrics.influxdb

import no.nav.personbruker.dittnav.common.metrics.MetricsReporter
import org.influxdb.dto.Point
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.personbruker.dittnav.common.metrics.influx
package no.nav.personbruker.dittnav.common.metrics.influxdb

import io.mockk.coEvery
import io.mockk.mockk
Expand All @@ -12,18 +12,25 @@ import java.util.concurrent.TimeUnit
internal class InfluxMetricsReporterTest {
val dataPointRelay: DataPointRelay = mockk()

val databaseName = "testdb"
val retentionPolicyName = "retention"
val application = "testApp"
val cluster = "test"
val namespace = "test1"

val sensuConfig = InfluxConfig(
"", 0, "",
val influxConfig = InfluxConfig(
"",
"",
"",
0,
databaseName,
retentionPolicyName,
application,
cluster,
namespace
)

val metricsReporter = InfluxMetricsReporter(sensuConfig, dataPointRelay)
val metricsReporter = InfluxMetricsReporter(influxConfig, dataPointRelay)

@Test
fun `Should construct a data point and add time of measurement and application-global tags`() {
Expand Down

This file was deleted.

0 comments on commit 71a4d29

Please sign in to comment.