Skip to content

Commit

Permalink
= kamon-core: Improve spec examples and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
thyandrecardoso committed Oct 23, 2023
1 parent 2ebdb62 commit 8e147fb
Showing 1 changed file with 17 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ class EnvironmentTagsSpec extends AnyWordSpec with Matchers {
| }
| }
|
| "tag-with-quotes" = value
| "defined-using-quotes" = value
|
| "\"tag-with-quotes\"" = value
|
| "@tag-with-special-chars" = value
| }
Expand Down Expand Up @@ -86,16 +88,17 @@ class EnvironmentTagsSpec extends AnyWordSpec with Matchers {
tags("region") shouldBe "asia-1"

tags.toMap shouldBe Map(
"@tag-with-special-chars"->"value",
"env"->"staging",
"host"->"my-hostname",
"instance"->"my-instance-name",
"k8s.namespace.name"->"production",
"@tag-with-special-chars" -> "value",
"env" -> "staging",
"host" -> "my-hostname",
"instance" -> "my-instance-name",
"k8s.namespace.name" -> "production",
"region" -> "asia-1",
"service"->"environment-spec",
"service" -> "environment-spec",
"some.tag.@inside" -> "value",
"some.tag.inside"->"example",
"tag-with-quotes"->"value"
"some.tag.inside" -> "example",
"defined-using-quotes" -> "value",
"\"tag-with-quotes\"" -> "value"
)
}

Expand Down Expand Up @@ -126,9 +129,11 @@ class EnvironmentTagsSpec extends AnyWordSpec with Matchers {
| "region",
| "env",
| "k8s.namespace.name",
| "some.tag.inside", "some.tag.@inside",
| "tag-with-quotes",
| "@tag-with-special-chars"
| "some.tag.inside",
| "some.tag.@inside",
| "defined-using-quotes",
| "@tag-with-special-chars",
| "\"tag-with-quotes\""
|]
""".stripMargin)

Expand Down

0 comments on commit 8e147fb

Please sign in to comment.