Skip to content

Commit 00f7c06

Browse files
committed
Fix linting issues, remove e2e.sh, move functionality into makefile
1 parent 04dae7b commit 00f7c06

File tree

5 files changed

+35
-48
lines changed

5 files changed

+35
-48
lines changed

test/e2e/clustering_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import (
1616
)
1717

1818
func TestClusterJoin(t *testing.T) {
19-
// Path to the helm chart we will test
19+
// Path to the helm chart we will test
2020
helmChartPath, e := filepath.Abs("../../charts")
21-
if (e != nil) {
21+
if e != nil {
2222
t.Fatalf(e.Error())
2323
}
2424
username := "admin"
@@ -31,13 +31,13 @@ func TestClusterJoin(t *testing.T) {
3131
options := &helm.Options{
3232
KubectlOptions: kubectlOptions,
3333
SetValues: map[string]string{
34-
"persistence.enabled": "false",
35-
"replicaCount": "2",
36-
"image.repository": "marklogic-centos/marklogic-server-centos",
37-
"image.tag": "10-internal",
38-
"auth.adminUsername": username,
39-
"auth.adminPassword": password,
40-
"logCollection.enabled": "false",
34+
"persistence.enabled": "false",
35+
"replicaCount": "2",
36+
"image.repository": "marklogic-centos/marklogic-server-centos",
37+
"image.tag": "10-internal",
38+
"auth.adminUsername": username,
39+
"auth.adminPassword": password,
40+
"logCollection.enabled": "false",
4141
},
4242
}
4343

@@ -46,7 +46,7 @@ func TestClusterJoin(t *testing.T) {
4646

4747
defer t.Logf("====Deleting namespace: " + namespaceName)
4848
defer k8s.DeleteNamespace(t, kubectlOptions, namespaceName)
49-
49+
5050
t.Logf("====Installing Helm Chart")
5151
releaseName := "test-join"
5252
helm.Install(t, options, helmChartPath, releaseName)

test/e2e/e2e.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

test/e2e/install_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ func TestHelmInstall(t *testing.T) {
2525
options := &helm.Options{
2626
KubectlOptions: kubectlOptions,
2727
SetValues: map[string]string{
28-
"persistence.enabled": "false",
29-
"replicaCount": "1",
30-
"image.repository": "marklogic-centos/marklogic-server-centos",
31-
"image.tag": "10-internal",
32-
"logCollection.enabled": "false",
28+
"persistence.enabled": "false",
29+
"replicaCount": "1",
30+
"image.repository": "marklogic-centos/marklogic-server-centos",
31+
"image.tag": "10-internal",
32+
"logCollection.enabled": "false",
3333
},
3434
}
3535

test/e2e/upgrade_test.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ import (
1515
)
1616

1717
func TestHelmUpgrade(t *testing.T) {
18-
// Path to the helm chart we will test
18+
// Path to the helm chart we will test
1919
helmChartPath, e := filepath.Abs("../../charts")
20-
if (e != nil) {
20+
if e != nil {
2121
t.Fatalf(e.Error())
2222
}
2323
namespaceName := "marklogic-" + strings.ToLower(random.UniqueId())
2424
kubectlOptions := k8s.NewKubectlOptions("", "", namespaceName)
2525
options := &helm.Options{
2626
KubectlOptions: kubectlOptions,
2727
SetValues: map[string]string{
28-
"persistence.enabled": "false",
29-
"replicaCount": "1",
30-
"image.repository": "marklogic-centos/marklogic-server-centos",
31-
"image.tag": "10-internal",
32-
"logCollection.enabled": "false",
28+
"persistence.enabled": "false",
29+
"replicaCount": "1",
30+
"image.repository": "marklogic-centos/marklogic-server-centos",
31+
"image.tag": "10-internal",
32+
"logCollection.enabled": "false",
3333
},
3434
}
3535

@@ -45,11 +45,11 @@ func TestHelmUpgrade(t *testing.T) {
4545
newOptions := &helm.Options{
4646
KubectlOptions: kubectlOptions,
4747
SetValues: map[string]string{
48-
"persistence.enabled": "false",
49-
"replicaCount": "2",
50-
"image.repository": "marklogic-centos/marklogic-server-centos",
51-
"image.tag": "10-internal",
52-
"logCollection.enabled": "false",
48+
"persistence.enabled": "false",
49+
"replicaCount": "2",
50+
"image.repository": "marklogic-centos/marklogic-server-centos",
51+
"image.tag": "10-internal",
52+
"logCollection.enabled": "false",
5353
},
5454
}
5555

test/template/template_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ func TestChartTemplateNoLogCollection(t *testing.T) {
2929
// Setup the args for helm install
3030
options := &helm.Options{
3131
SetValues: map[string]string{
32-
"image.repository": "marklogicdb/marklogic-db",
33-
"image.tag": "latest",
34-
"persistence.enabled": "false",
35-
"logCollection.enabled": "false",
32+
"image.repository": "marklogicdb/marklogic-db",
33+
"image.tag": "latest",
34+
"persistence.enabled": "false",
35+
"logCollection.enabled": "false",
3636
},
3737
KubectlOptions: k8s.NewKubectlOptions("", "", namespaceName),
3838
}
@@ -70,10 +70,10 @@ func TestChartTemplateLogCollection(t *testing.T) {
7070
// Setup the args for helm install
7171
options := &helm.Options{
7272
SetValues: map[string]string{
73-
"image.repository": "marklogicdb/marklogic-db",
74-
"image.tag": "latest",
75-
"persistence.enabled": "false",
76-
"logCollection.enabled": "true",
73+
"image.repository": "marklogicdb/marklogic-db",
74+
"image.tag": "latest",
75+
"persistence.enabled": "false",
76+
"logCollection.enabled": "true",
7777
},
7878
KubectlOptions: k8s.NewKubectlOptions("", "", namespaceName),
7979
}

0 commit comments

Comments
 (0)