Skip to content

Commit 20bb662

Browse files
committed
Use ubuntu in tests that don't rely on OS
1 parent 8a52d2b commit 20bb662

7 files changed

+11
-11
lines changed

integration/docker_registry_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var _ = Describe("kismatic docker registry feature", func() {
1515

1616
Describe("enabling the internal docker registry feature", func() {
1717
ItOnAWS("should install successfully [slow]", func(aws infrastructureProvisioner) {
18-
WithInfrastructure(NodeCount{1, 1, 1, 0, 0}, CentOS7, aws, func(nodes provisionedNodes, sshKey string) {
18+
WithInfrastructure(NodeCount{1, 1, 1, 0, 0}, Ubuntu1604LTS, aws, func(nodes provisionedNodes, sshKey string) {
1919
opts := installOptions{
2020
allowPackageInstallation: true,
2121
autoConfigureDockerRegistry: true,
@@ -28,7 +28,7 @@ var _ = Describe("kismatic docker registry feature", func() {
2828

2929
Describe("using an existing private docker registry", func() {
3030
ItOnAWS("should install successfully [slow]", func(aws infrastructureProvisioner) {
31-
WithInfrastructure(NodeCount{1, 1, 1, 0, 0}, CentOS7, aws, func(nodes provisionedNodes, sshKey string) {
31+
WithInfrastructure(NodeCount{1, 1, 1, 0, 0}, Ubuntu1604LTS, aws, func(nodes provisionedNodes, sshKey string) {
3232
By("Installing an external Docker registry on one of the nodes")
3333
dockerRegistryPort := 8443
3434
caFile, err := deployDockerRegistry(nodes.etcd[0], dockerRegistryPort, sshKey)

integration/hosts_file_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var _ = Describe("hosts file modification feature", func() {
1616

1717
Describe("enabling the hosts file modification feature", func() {
1818
ItOnAWS("should result in a functional cluster [slow]", func(aws infrastructureProvisioner) {
19-
WithInfrastructure(NodeCount{1, 1, 2, 0, 0}, CentOS7, aws, func(nodes provisionedNodes, sshKey string) {
19+
WithInfrastructure(NodeCount{1, 1, 2, 0, 0}, Ubuntu1604LTS, aws, func(nodes provisionedNodes, sshKey string) {
2020
By("Setting the hostnames to be different than the actual ones")
2121

2222
loadBalancedFQDN := nodes.master[0].PublicIP

integration/install_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ var _ = Describe("kismatic", func() {
8585
allowPackageInstallation: true,
8686
}
8787
ItOnAWS("should install successfully [slow]", func(aws infrastructureProvisioner) {
88-
WithInfrastructure(NodeCount{1, 1, 1, 1, 1}, CentOS7, aws, func(nodes provisionedNodes, sshKey string) {
88+
WithInfrastructure(NodeCount{1, 1, 1, 1, 1}, Ubuntu1604LTS, aws, func(nodes provisionedNodes, sshKey string) {
8989
err := installKismatic(nodes, installOpts, sshKey)
9090
Expect(err).ToNot(HaveOccurred())
9191
})
@@ -124,7 +124,7 @@ var _ = Describe("kismatic", func() {
124124
// This spec is open to modification when new assertions have to be made
125125
Context("when deploying a skunkworks cluster", func() {
126126
ItOnAWS("should install successfully [slow]", func(aws infrastructureProvisioner) {
127-
WithInfrastructureAndDNS(NodeCount{3, 2, 3, 2, 2}, CentOS7, aws, func(nodes provisionedNodes, sshKey string) {
127+
WithInfrastructureAndDNS(NodeCount{3, 2, 3, 2, 2}, Ubuntu1604LTS, aws, func(nodes provisionedNodes, sshKey string) {
128128
// reserve one of the workers for the add-worker test
129129
allWorkers := nodes.worker
130130
nodes.worker = allWorkers[0 : len(nodes.worker)-1]
@@ -168,7 +168,7 @@ var _ = Describe("kismatic", func() {
168168
})
169169

170170
ItOnPacket("should install successfully [slow]", func(packet infrastructureProvisioner) {
171-
WithMiniInfrastructure(CentOS7, packet, func(node NodeDeets, sshKey string) {
171+
WithMiniInfrastructure(Ubuntu1604LTS, packet, func(node NodeDeets, sshKey string) {
172172
err := installKismaticMini(node, sshKey)
173173
Expect(err).ToNot(HaveOccurred())
174174
})

integration/step_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var _ = Describe("install step commands", func() {
1616

1717
Describe("Running the api server play against an existing cluster", func() {
1818
ItOnAWS("should return successfully [slow]", func(aws infrastructureProvisioner) {
19-
WithMiniInfrastructure(CentOS7, aws, func(node NodeDeets, sshKey string) {
19+
WithMiniInfrastructure(Ubuntu1604LTS, aws, func(node NodeDeets, sshKey string) {
2020
err := installKismaticMini(node, sshKey)
2121
Expect(err).ToNot(HaveOccurred())
2222

integration/storage_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var _ = Describe("Storage feature", func() {
3333
Describe("Deploying a stateful workload", func() {
3434
Context("on a cluster with storage nodes", func() {
3535
ItOnAWS("should be able to read/write to a persistent volume [slow]", func(aws infrastructureProvisioner) {
36-
WithInfrastructure(NodeCount{Etcd: 1, Master: 1, Worker: 2, Storage: 2}, CentOS7, aws, func(nodes provisionedNodes, sshKey string) {
36+
WithInfrastructure(NodeCount{Etcd: 1, Master: 1, Worker: 2, Storage: 2}, Ubuntu1604LTS, aws, func(nodes provisionedNodes, sshKey string) {
3737
By("Installing a cluster with storage")
3838
opts := installOptions{
3939
allowPackageInstallation: true,

integration/upgrade_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var _ = Describe("Upgrade", func() {
3939
// This spec is open to modification when new assertions have to be made.
4040
Context("Using a skunkworks cluster", func() {
4141
ItOnAWS("should result in an upgraded cluster [slow] [upgrade]", func(aws infrastructureProvisioner) {
42-
WithInfrastructureAndDNS(NodeCount{Etcd: 3, Master: 2, Worker: 3, Ingress: 2, Storage: 2}, CentOS7, aws, func(nodes provisionedNodes, sshKey string) {
42+
WithInfrastructureAndDNS(NodeCount{Etcd: 3, Master: 2, Worker: 3, Ingress: 2, Storage: 2}, Ubuntu1604LTS, aws, func(nodes provisionedNodes, sshKey string) {
4343
// reserve one of the workers for the add-worker test
4444
allWorkers := nodes.worker
4545
nodes.worker = allWorkers[0 : len(nodes.worker)-1]

integration/validate_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ var _ = Describe("kismatic install validate tests", func() {
3333
})
3434

3535
Describe("Running validation with bad SSH key", func() {
36-
Context("Using CentOS 7", func() {
36+
Context("Using Ubuntu 16.04", func() {
3737
ItOnAWS("should result in an ssh validation error", func(aws infrastructureProvisioner) {
38-
WithMiniInfrastructure(CentOS7, aws, func(node NodeDeets, sshKey string) {
38+
WithMiniInfrastructure(Ubuntu1604LTS, aws, func(node NodeDeets, sshKey string) {
3939
badSSHKey, err := getBadSSHKeyFile()
4040
if err != nil {
4141
Fail("Unexpected error generating fake SSH key: %v")

0 commit comments

Comments
 (0)