-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathreleases_test.go
More file actions
41 lines (38 loc) · 1.25 KB
/
releases_test.go
File metadata and controls
41 lines (38 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package _tests_test
import (
. "github.com/onsi/ginkgo"
// . "github.com/onsi/gomega"
)
var _ = Describe("Releases", func() {
Context("with a deployed app", func() {
// XIt("can list releases", func() {
// output, err := execute("deis releases:list --app=%s", appName)
// Expect(err).NotTo(HaveOccurred())
// Expect(output).To(SatisfyAll(
// HavePrefix("=== %s Releases", appName),
// MatchRegexp(`v1\t.*\t%s created initial release`, username),
// MatchRegexp(`v2\t.*\t%s deployed \w+`, username)))
// })
//
// XIt("can rollback to a previous release", func() {
// output, err := execute("deis releases:rollback v2 --app=%s", appName)
// Expect(err).NotTo(HaveOccurred())
//
// Expect
// regexp := `asdf`
// Expect(output)
// })
//
// XIt("can get info on releases", func() {
// output, err := execute("deis releases:info %s --app=%s", version, appName)
// Expect(err).NotTo(HaveOccurred())
// Expect(output).To(SatisfyAll(
// HavePrefix("=== %s Release v2", appName),
// MatchRegexp(`build:\s+[\w-]+`),
// MatchRegexp(`config:\s+[\w-]+`),
// MatchRegexp(`owner:\s+%s`, username),
// MatchRegexp(`summary:\s+%s deployed \w+`, username),
// MatchRegexp(`uuid:\s+[\w-]+`)))
// })
})
})