Skip to content

Commit e8db5f2

Browse files
MLE-15549: changes for handling diff test scenarios (#263)
* changes for handling diff test scenarios * removing allowPrivilegeEscalation as by default upgrade is using rootless
1 parent cfe6567 commit e8db5f2

10 files changed

+13
-1
lines changed

test/e2e/admin_secrets_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ func TestMlAdminSecrets(t *testing.T) {
8888
"replicaCount": "1",
8989
"logCollection.enabled": "false",
9090
"allowLongHostnames": "true",
91+
"rootToRootlessUpgrade": "true",
9192
}
9293

9394
if strings.HasPrefix(initialChartVersion, "1.0") {

test/e2e/backup_restore_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ func TestMlDbBackupRestore(t *testing.T) {
220220
"replicaCount": "1",
221221
"logCollection.enabled": "false",
222222
"allowLongHostnames": "true",
223+
"rootToRootlessUpgrade": "true",
223224
}
224225
if strings.HasPrefix(initialChartVersion, "1.0") {
225226
podName = releaseName + "-marklogic-0"

test/e2e/clustering_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ func TestClusterJoin(t *testing.T) {
9393
"auth.adminPassword": password,
9494
"logCollection.enabled": "false",
9595
"allowLongHostnames": "true",
96+
"rootToRootlessUpgrade": "true",
9697
}
9798
if strings.HasPrefix(initialChartVersion, "1.0") {
9899
podZeroName = releaseName + "-marklogic-0"

test/e2e/env_param_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ func TestEnableConvertersAndLicense(t *testing.T) {
100100
"enableConverters": "true",
101101
"logCollection.enabled": "false",
102102
"allowLongHostnames": "true",
103+
"rootToRootlessUpgrade": "true",
103104
}
104105
if strings.HasPrefix(initialChartVersion, "1.0") {
105106
podName = releaseName + "-marklogic-0"

test/e2e/install_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ func TestHelmInstall(t *testing.T) {
103103
"replicaCount": "2",
104104
"logCollection.enabled": "false",
105105
"allowLongHostnames": "true",
106+
"rootToRootlessUpgrade": "true",
106107
}
107108
if strings.HasPrefix(initialChartVersion, "1.0") {
108109
podZeroName = releaseName + "-marklogic-0"

test/e2e/ready_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ func TestMarklogicReady(t *testing.T) {
9595
"replicaCount": "2",
9696
"logCollection.enabled": "false",
9797
"allowLongHostnames": "true",
98+
"rootToRootlessUpgrade": "true",
9899
}
99100
if strings.HasPrefix(initialChartVersion, "1.0") {
100101
podZeroName = releaseName + "-marklogic-0"

test/e2e/scaling_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ func TestHelmScaleUp(t *testing.T) {
109109
"auth.adminPassword": password,
110110
"logCollection.enabled": "false",
111111
"allowLongHostnames": "true",
112+
"rootToRootlessUpgrade": "true",
112113
}
113114
if strings.HasPrefix(initialChartVersion, "1.0") {
114115
podZeroName = releaseName + "-marklogic-0"

test/e2e/separate_nodes_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ func TestSeparateEDnode(t *testing.T) {
279279
"auth.adminUsername": username,
280280
"auth.adminPassword": password,
281281
"allowLongHostnames": "true",
282+
"rootToRootlessUpgrade": "true",
282283
}
283284
enodeUpgradeOptionsMap := map[string]string{
284285
"persistence.enabled": "true",
@@ -289,6 +290,7 @@ func TestSeparateEDnode(t *testing.T) {
289290
"group.name": "enode",
290291
"group.enableXdqpSsl": "false",
291292
"allowLongHostnames": "true",
293+
"rootToRootlessUpgrade": "true",
292294
}
293295
if strings.HasPrefix(initialChartVersion, "1.0") {
294296
dnodePodName = dnodeReleaseName + "-marklogic-0"

test/e2e/tls_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ func TestTLSEnabledWithSelfSigned(t *testing.T) {
103103
"tls.enableOnDefaultAppServers": "true",
104104
"logCollection.enabled": "false",
105105
"allowLongHostnames": "true",
106+
"rootToRootlessUpgrade": "true",
106107
}
107108
if strings.HasPrefix(initialChartVersion, "1.0") {
108109
podName = releaseName + "-marklogic-0"
@@ -265,7 +266,8 @@ func TestTLSEnabledWithNamedCert(t *testing.T) {
265266

266267
if runUpgradeTest {
267268
upgradeOptionsMap := map[string]string{
268-
"allowLongHostnames": "true",
269+
"allowLongHostnames": "true",
270+
"rootToRootlessUpgrade": "true",
269271
}
270272

271273
if strings.HasPrefix(initialChartVersion, "1.0") {

test/hugePages/huge_pages_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ func TestHugePagesSettings(t *testing.T) {
117117
"resources.limits.memory": "8Gi",
118118
"resources.requests.memory": "8Gi",
119119
"allowLongHostnames": "true",
120+
"rootToRootlessUpgrade": "true",
120121
}
121122
if strings.HasPrefix(initialChartVersion, "1.0") {
122123
podName = releaseName + "-marklogic-0"

0 commit comments

Comments
 (0)