Skip to content

Commit

Permalink
Added few supported container images to e2e image test (#3315)
Browse files Browse the repository at this point in the history
  • Loading branch information
amitkrout authored Jun 20, 2020
1 parent e3a7b12 commit bd911db
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/e2escenarios/e2e_images_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// This test file verifies all the supported container images listed in the
// file https://github.com/openshift/odo-init-image/blob/master/language-scripts/image-mappings.json
package e2escenarios

import (
Expand Down Expand Up @@ -120,5 +122,25 @@ var _ = Describe("odo supported images e2e tests", func() {
oc.ImportImageFromRegistry("docker.io", filepath.Join("centos", "nodejs-8-centos7:latest"), "nodejs:latest", project)
verifySupportedImage(filepath.Join("centos", "nodejs-8-centos7:latest"), "nodejs", "nodejs:latest", project, appName, context)
})

It("Should be able to verify the nodejs-10-centos7 image", func() {
oc.ImportImageFromRegistry("docker.io", filepath.Join("centos", "nodejs-10-centos7:latest"), "nodejs:latest", project)
verifySupportedImage(filepath.Join("centos", "nodejs-10-centos7:latest"), "nodejs", "nodejs:latest", project, appName, context)
})

It("Should be able to verify the nodejs-12-centos7 image", func() {
oc.ImportImageFromRegistry("docker.io", filepath.Join("centos", "nodejs-12-centos7:latest"), "nodejs:latest", project)
verifySupportedImage(filepath.Join("centos", "nodejs-12-centos7:latest"), "nodejs", "nodejs:latest", project, appName, context)
})

It("Should be able to verify the nodejs-10-rhel7 image", func() {
oc.ImportImageFromRegistry("registry.access.redhat.com", filepath.Join("rhscl", "nodejs-10-rhel7:latest"), "nodejs:latest", project)
verifySupportedImage(filepath.Join("rhscl", "nodejs-10-rhel7:latest"), "nodejs", "nodejs:latest", project, appName, context)
})

It("Should be able to verify the centos7-s2i-nodejs image", func() {
oc.ImportImageFromRegistry("docker.io", filepath.Join("nodeshift", "centos7-s2i-nodejs:latest"), "nodejs:latest", project)
verifySupportedImage(filepath.Join("nodeshift", "centos7-s2i-nodejs:latest"), "nodejs", "nodejs:latest", project, appName, context)
})
})
})

0 comments on commit bd911db

Please sign in to comment.