Skip to content

Commit

Permalink
Kayenta tests (#2056)
Browse files Browse the repository at this point in the history
* refactor(kayenta): Use strongly typed classes to represent Kayenta stage config.

* refactor(kayenta): Migrate tests to Kotlin
  • Loading branch information
robfletcher authored and Michael Graff committed Mar 16, 2018
1 parent 7e843cd commit ac28355
Show file tree
Hide file tree
Showing 19 changed files with 560 additions and 541 deletions.
2 changes: 0 additions & 2 deletions orca-kayenta/orca-kayenta.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@

apply from: "$rootDir/gradle/kotlin.gradle"
apply from: "$rootDir/gradle/spek.gradle"
apply from: "$rootDir/gradle/spock.gradle"

dependencies {
compile project(":orca-kotlin")
compile project(":orca-retrofit")

testCompile project(":orca-test-groovy")
testCompile project(":orca-test-kotlin")
testCompile "com.github.tomakehurst:wiremock:2.15.0"
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import com.github.tomakehurst.wiremock.WireMockServer
import com.github.tomakehurst.wiremock.client.WireMock.*
import com.github.tomakehurst.wiremock.core.WireMockConfiguration.options
import com.netflix.spinnaker.orca.kayenta.config.KayentaConfiguration
import com.netflix.spinnaker.time.fixedClock
import org.assertj.core.api.Assertions.assertThat
import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.describe
Expand Down Expand Up @@ -58,7 +59,7 @@ object KayentaServiceTest : Spek({

describe("the Kayenta service") {

val clock = Clock.fixed(Instant.now(), ZoneId.systemDefault())
val clock = fixedClock()
val canaryConfigId = randomUUID().toString()
val mapper = jacksonObjectMapper()

Expand Down
Loading

0 comments on commit ac28355

Please sign in to comment.