forked from openshift/origin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
controller_compat.go
66 lines (57 loc) · 1.88 KB
/
controller_compat.go
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package builds
import (
"os"
g "github.com/onsi/ginkgo"
"github.com/openshift/origin/test/common/build"
exutil "github.com/openshift/origin/test/extended/util"
)
var _ = g.Describe("[bldcompat][Slow][Compatibility] build controller", func() {
defer g.GinkgoRecover()
var (
oc = exutil.NewCLI("compat-build-controllers", exutil.KubeConfigPath())
)
g.Context("", func() {
g.BeforeEach(func() {
exutil.DumpDockerInfo()
})
g.JustBeforeEach(func() {
os.Setenv("OS_TEST_NAMESPACE", oc.Namespace())
})
g.AfterEach(func() {
if g.CurrentGinkgoTestDescription().Failed {
exutil.DumpPodStates(oc)
exutil.DumpPodLogsStartingWith("", oc)
}
})
g.Describe("RunBuildControllerTest", func() {
g.It("should succeed", func() {
build.RunBuildControllerTest(g.GinkgoT(), oc.BuildClient().Build(), oc.InternalAdminKubeClient())
})
})
g.Describe("RunBuildControllerPodSyncTest", func() {
g.It("should succeed", func() {
build.RunBuildControllerPodSyncTest(g.GinkgoT(), oc.BuildClient().Build(), oc.InternalAdminKubeClient())
})
})
g.Describe("RunImageChangeTriggerTest [SkipPrevControllers]", func() {
g.It("should succeed", func() {
build.RunImageChangeTriggerTest(g.GinkgoT(), oc.AdminBuildClient().Build(), oc.AdminImageClient().Image())
})
})
g.Describe("RunBuildDeleteTest", func() {
g.It("should succeed", func() {
build.RunBuildDeleteTest(g.GinkgoT(), oc.AdminBuildClient().Build(), oc.InternalAdminKubeClient())
})
})
g.Describe("RunBuildRunningPodDeleteTest", func() {
g.It("should succeed", func() {
build.RunBuildRunningPodDeleteTest(g.GinkgoT(), oc.AdminBuildClient().Build(), oc.InternalAdminKubeClient())
})
})
g.Describe("RunBuildConfigChangeControllerTest", func() {
g.It("should succeed", func() {
build.RunBuildConfigChangeControllerTest(g.GinkgoT(), oc.AdminBuildClient().Build())
})
})
})
})