Skip to content

Commit

Permalink
test(img): correct test to assert pull policy on db and storage conta…
Browse files Browse the repository at this point in the history
…iners (cryostatio#905)
  • Loading branch information
andrewazores authored Jul 4, 2024
1 parent 95f3362 commit b3ec388
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/controllers/reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1037,12 +1037,16 @@ func (c *controllerTest) commonTests() {
reportsImg := "my/reports-image:latest"
oauth2ProxyImg := "my/authproxy-image:latest"
openshiftAuthProxyImg := "my/openshift-authproxy-image:latest"
dbImg := "my/db-image:latest"
storageImg := "my/storage-image:latest"
t.EnvCoreImageTag = &coreImg
t.EnvDatasourceImageTag = &datasourceImg
t.EnvGrafanaImageTag = &grafanaImg
t.EnvReportsImageTag = &reportsImg
t.EnvOAuth2ProxyImageTag = &oauth2ProxyImg
t.EnvOpenShiftOAuthProxyImageTag = &openshiftAuthProxyImg
t.EnvDatabaseImageTag = &dbImg
t.EnvStorageImageTag = &storageImg
})
It("should create deployment with the expected tags", func() {
t.expectMainDeployment()
Expand All @@ -1052,7 +1056,7 @@ func (c *controllerTest) commonTests() {
containers := mainDeploy.Spec.Template.Spec.Containers
Expect(containers).To(HaveLen(6))
for _, container := range containers {
Expect(container.ImagePullPolicy).To(Equal(corev1.PullAlways))
Expect(container.ImagePullPolicy).To(Equal(corev1.PullAlways), "Container %s", container.Image)
}
reportContainers := reportsDeploy.Spec.Template.Spec.Containers
Expect(reportContainers).To(HaveLen(1))
Expand Down

0 comments on commit b3ec388

Please sign in to comment.