forked from bsteciuk/kismatic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstep_test.go
31 lines (26 loc) · 796 Bytes
/
step_test.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
package integration
import (
"os"
"os/exec"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("install step commands", func() {
BeforeEach(func() {
dir := setupTestWorkingDir()
os.Chdir(dir)
})
Describe("Running the api server play against an existing cluster", func() {
ItOnAWS("should return successfully [slow]", func(aws infrastructureProvisioner) {
WithMiniInfrastructure(Ubuntu1604LTS, aws, func(node NodeDeets, sshKey string) {
err := installKismaticMini(node, sshKey)
Expect(err).ToNot(HaveOccurred())
c := exec.Command("./kismatic", "install", "step", "_kube-apiserver.yaml", "-f", "kismatic-testing.yaml")
c.Stdout = os.Stdout
c.Stderr = os.Stderr
err = c.Run()
Expect(err).ToNot(HaveOccurred())
})
})
})
})