Context("and Docker Registry is secure", func() {
				BeforeEach(func() {
					insecureDockerRegistry = false
				})

				It("creates a cf-app-docker-staging Task with staging instructions", checkStagingInstructionsFunc)
			})

			Context("and Docker Registry is insecure", func() {
				BeforeEach(func() {
					insecureDockerRegistry = true
				})

				JustBeforeEach(func() {
					internalRunAction.Args = append(internalRunAction.Args, "-insecureDockerRegistries", dockerRegistryAddress)
				})

				It("creates a cf-app-docker-staging Task with staging instructions", checkStagingInstructionsFunc)
			})

			Context("and credentials are provided", func() {
				BeforeEach(func() {
					loginServer = "http://loginServer.com"
					user = "******"
					password = "******"
					email = "*****@*****.**"
				})

				JustBeforeEach(func() {
					internalRunAction.Args = append(internalRunAction.Args,