KubeDescribe implementation with verify into after-build/ scripts.

This commit is contained in:
Jay Vyas
2016-03-11 14:29:44 -05:00
parent a1fcccd8b5
commit 9a71dfe753
72 changed files with 160 additions and 121 deletions

View File

@@ -37,7 +37,7 @@ const (
serverStartTimeout = podStartTimeout + 3*time.Minute
)
var _ = Describe("[Feature:Example]", func() {
var _ = KubeDescribe("[Feature:Example]", func() {
framework := NewDefaultFramework("examples")
var c *client.Client
var ns string
@@ -46,7 +46,7 @@ var _ = Describe("[Feature:Example]", func() {
ns = framework.Namespace.Name
})
Describe("Redis", func() {
KubeDescribe("Redis", func() {
It("should create and stop redis servers", func() {
mkpath := func(file string) string {
return filepath.Join(testContext.RepoRoot, "examples/redis", file)
@@ -108,7 +108,7 @@ var _ = Describe("[Feature:Example]", func() {
})
})
Describe("Celery-RabbitMQ", func() {
KubeDescribe("Celery-RabbitMQ", func() {
It("should create and stop celery+rabbitmq servers", func() {
mkpath := func(file string) string {
return filepath.Join(testContext.RepoRoot, "examples", "celery-rabbitmq", file)
@@ -151,7 +151,7 @@ var _ = Describe("[Feature:Example]", func() {
})
})
Describe("Spark", func() {
KubeDescribe("Spark", func() {
It("should start spark master, driver and workers", func() {
mkpath := func(file string) string {
return filepath.Join(testContext.RepoRoot, "examples", "spark", file)
@@ -201,7 +201,7 @@ var _ = Describe("[Feature:Example]", func() {
})
})
Describe("Cassandra", func() {
KubeDescribe("Cassandra", func() {
It("should create and scale cassandra", func() {
mkpath := func(file string) string {
return filepath.Join(testContext.RepoRoot, "examples", "cassandra", file)
@@ -248,7 +248,7 @@ var _ = Describe("[Feature:Example]", func() {
})
})
Describe("Storm", func() {
KubeDescribe("Storm", func() {
It("should create and stop Zookeeper, Nimbus and Storm worker servers", func() {
mkpath := func(file string) string {
return filepath.Join(testContext.RepoRoot, "examples", "storm", file)
@@ -302,7 +302,7 @@ var _ = Describe("[Feature:Example]", func() {
})
})
Describe("Liveness", func() {
KubeDescribe("Liveness", func() {
It("liveness pods should be automatically restarted", func() {
mkpath := func(file string) string {
return filepath.Join(testContext.RepoRoot, "docs", "user-guide", "liveness", file)
@@ -352,7 +352,7 @@ var _ = Describe("[Feature:Example]", func() {
})
})
Describe("Secret", func() {
KubeDescribe("Secret", func() {
It("should create a pod that reads a secret", func() {
mkpath := func(file string) string {
return filepath.Join(testContext.RepoRoot, "docs", "user-guide", "secrets", file)
@@ -374,7 +374,7 @@ var _ = Describe("[Feature:Example]", func() {
})
})
Describe("Downward API", func() {
KubeDescribe("Downward API", func() {
It("should create a pod that prints his name and namespace", func() {
mkpath := func(file string) string {
return filepath.Join(testContext.RepoRoot, "docs", "user-guide", "downward-api", file)
@@ -396,7 +396,7 @@ var _ = Describe("[Feature:Example]", func() {
})
})
Describe("RethinkDB", func() {
KubeDescribe("RethinkDB", func() {
It("should create and stop rethinkdb servers", func() {
mkpath := func(file string) string {
return filepath.Join(testContext.RepoRoot, "examples", "rethinkdb", file)
@@ -438,7 +438,7 @@ var _ = Describe("[Feature:Example]", func() {
})
})
Describe("Hazelcast", func() {
KubeDescribe("Hazelcast", func() {
It("should create and scale hazelcast", func() {
mkpath := func(file string) string {
return filepath.Join(testContext.RepoRoot, "examples", "hazelcast", file)