Skip to content

Commit a0c16cc

Browse files
author
Vaughn Dice
authored
Merge pull request #349 from vdice/add-config-set-spec-with-dockerfile-app
feat(tests): add config:set spec with dockerfile app
2 parents 0384b09 + d3e0d74 commit a0c16cc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/git_push_test.go

+14
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,20 @@ var _ = Describe("git push deis master", func() {
189189
git.Push(user, keyPath, app, "Powered by Deis")
190190
})
191191

192+
Specify("that user can deploy that app using a git push after setting config values", func() {
193+
sess, err := cmd.Start("deis config:set -a %s PORT=80 POWERED_BY=midi-chlorians", &user, app.Name)
194+
Expect(err).NotTo(HaveOccurred())
195+
Eventually(sess).Should(Say("Creating config"))
196+
Eventually(sess, settings.MaxEventuallyTimeout).Should(Say("=== %s Config", app.Name))
197+
output := string(sess.Out.Contents())
198+
Expect(output).To(MatchRegexp(`PORT\s+80`))
199+
Expect(output).To(MatchRegexp(`POWERED_BY\s+midi-chlorians`))
200+
Expect(err).NotTo(HaveOccurred())
201+
Eventually(sess).Should(Exit(0))
202+
203+
git.Push(user, keyPath, app, "Powered by midi-chlorians")
204+
})
205+
192206
Specify("that user can deploy that app only once concurrently", func() {
193207
sess := git.StartPush(user, keyPath)
194208
// sleep for five seconds, then push the same app

0 commit comments

Comments
 (0)