Skip to content

Commit

Permalink
Merge pull request #349 from vdice/add-config-set-spec-with-dockerfil…
Browse files Browse the repository at this point in the history
…e-app

feat(tests): add config:set spec with dockerfile app
  • Loading branch information
Vaughn Dice authored Mar 2, 2017
2 parents 0384b09 + d3e0d74 commit a0c16cc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/git_push_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,20 @@ var _ = Describe("git push deis master", func() {
git.Push(user, keyPath, app, "Powered by Deis")
})

Specify("that user can deploy that app using a git push after setting config values", func() {
sess, err := cmd.Start("deis config:set -a %s PORT=80 POWERED_BY=midi-chlorians", &user, app.Name)
Expect(err).NotTo(HaveOccurred())
Eventually(sess).Should(Say("Creating config"))
Eventually(sess, settings.MaxEventuallyTimeout).Should(Say("=== %s Config", app.Name))
output := string(sess.Out.Contents())
Expect(output).To(MatchRegexp(`PORT\s+80`))
Expect(output).To(MatchRegexp(`POWERED_BY\s+midi-chlorians`))
Expect(err).NotTo(HaveOccurred())
Eventually(sess).Should(Exit(0))

git.Push(user, keyPath, app, "Powered by midi-chlorians")
})

Specify("that user can deploy that app only once concurrently", func() {
sess := git.StartPush(user, keyPath)
// sleep for five seconds, then push the same app
Expand Down

0 comments on commit a0c16cc

Please sign in to comment.