Skip to content

Commit

Permalink
remove service account name check and replace local registry image us…
Browse files Browse the repository at this point in the history
…ed during local tests
  • Loading branch information
Dream1Master committed Feb 28, 2024
1 parent 04d1a43 commit b8c82f8
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions client/src/it/scala/skuber/format/PodFormatSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class PodFormatSpec extends K8SFixture with Eventually with Matchers with Before
val podName: String = namePrefix + randomUUID().toString
val containerName = "nginx"
val nginxVersion = "1.7.9"
val nginxImage = s"192.168.49.1:5000/nginx:$nginxVersion"
val nginxImage = s"nginx:$nginxVersion"

val podJsonStr = s"""
{
Expand Down Expand Up @@ -90,8 +90,7 @@ class PodFormatSpec extends K8SFixture with Eventually with Matchers with Before
}
],
"restartPolicy": "Always",
"dnsPolicy": "Default",
"serviceAccount": "default"
"dnsPolicy": "Default"
}
}
"""
Expand Down Expand Up @@ -197,14 +196,4 @@ class PodFormatSpec extends K8SFixture with Eventually with Matchers with Before
dnsPolicy shouldBe DNSPolicy.Default
}

it should "have the same spec serviceAccount as configured" in { k8s =>
val maybePodSpec = k8s.get[Pod](podName).valueT.spec

maybePodSpec should not be empty

val serviceAccount = maybePodSpec.get.serviceAccountName

serviceAccount shouldBe "default"
}

}

0 comments on commit b8c82f8

Please sign in to comment.