github.com/apprenda/kismatic@v1.12.0/integration-tests/docker_registry_test.go (about)

     1  package integration_tests
     2  
     3  import (
     4  	"fmt"
     5  	"os"
     6  
     7  	. "github.com/onsi/ginkgo"
     8  	. "github.com/onsi/gomega"
     9  )
    10  
    11  var _ = Describe("kismatic docker registry feature", func() {
    12  	BeforeEach(func() {
    13  		dir := setupTestWorkingDir()
    14  		os.Chdir(dir)
    15  	})
    16  
    17  	Describe("using an existing private docker registry", func() {
    18  		ItOnAWS("should install successfully [slow]", func(aws infrastructureProvisioner) {
    19  			WithInfrastructure(NodeCount{2, 1, 1, 0, 0}, Ubuntu1604LTS, aws, func(nodes provisionedNodes, sshKey string) {
    20  				By("Installing an external Docker registry on one of the nodes")
    21  				dockerRegistryPort := 8443
    22  				caFile, err := deployAuthenticatedDockerRegistry(nodes.etcd[1], dockerRegistryPort, sshKey)
    23  				Expect(err).ToNot(HaveOccurred())
    24  				opts := installOptions{
    25  					dockerRegistryCAPath:   caFile,
    26  					dockerRegistryServer:   fmt.Sprintf("%s:%d", nodes.etcd[1].PrivateIP, dockerRegistryPort),
    27  					dockerRegistryUsername: "kismaticuser",
    28  					dockerRegistryPassword: "kismaticpassword",
    29  				}
    30  				nodes.etcd = []NodeDeets{nodes.etcd[0]}
    31  				err = installKismatic(nodes, opts, sshKey)
    32  				Expect(err).ToNot(HaveOccurred())
    33  			})
    34  		})
    35  	})
    36  })