@eclipse-che/che-e2e 7.84.0-next-02c771c → 7.84.0-next-817ddaf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -55,20 +55,20 @@ suite(`Create predefined workspace and check it ${BASE_TEST_CONSTANTS_1.BASE_TES
|
|
|
55
55
|
kubernetesCommandLineToolsExecutor.applyWithoutNamespace(devWorkspaceConfigurationYamlString);
|
|
56
56
|
});
|
|
57
57
|
// verify that just created workspace is available for the dedicated user
|
|
58
|
-
test('Validate
|
|
58
|
+
test('Validate that predefined namespace has been created', function () {
|
|
59
59
|
const expectedProject = shellExecutor.executeArbitraryShellScript('oc get projects');
|
|
60
60
|
(0, chai_1.expect)(expectedProject).contains(predefinedNamespaceName);
|
|
61
61
|
});
|
|
62
|
-
//
|
|
63
|
-
test('
|
|
62
|
+
// ensure the generated DevSpace is created within the predefined namespace
|
|
63
|
+
test('Create test DevWorkspace and verify its creation within the predefined namespace', function () {
|
|
64
64
|
kubernetesCommandLineToolsExecutor.namespace = predefinedNamespaceName;
|
|
65
65
|
kubernetesCommandLineToolsExecutor.workspaceName = workspaceName;
|
|
66
66
|
// relogin under the admin user (because regular user does not have permissions for getting pod states)
|
|
67
67
|
kubernetesCommandLineToolsExecutor.loginToOcp('admin');
|
|
68
68
|
(0, chai_1.expect)(kubernetesCommandLineToolsExecutor.waitDevWorkspace().stdout).contains('condition met');
|
|
69
69
|
});
|
|
70
|
-
// verify that
|
|
71
|
-
test('Validate the
|
|
70
|
+
// verify that the newly created workspace, identified by a unique name, exists within the predefined namespace. Given that multiple users may use the same cluster and create multiple DevSpaces within the same OpenShift project, it's essential to confirm that our test project, distinguished by a unique name, has been successfully created.
|
|
71
|
+
test('Validate the creation of the correct DevWorkspace with a unique name', function () {
|
|
72
72
|
const ocDevWorkspaceOutput = kubernetesCommandLineToolsExecutor.getDevWorkspaceYamlConfiguration();
|
|
73
73
|
(0, chai_1.expect)(ocDevWorkspaceOutput).includes(workspaceName);
|
|
74
74
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PredefinedNamespace.spec.js","sourceRoot":"","sources":["../../../specs/miscellaneous/PredefinedNamespace.spec.ts"],"names":[],"mappings":";;AAAA;;;;;;;;wEAQwE;AACxE,qEAA8D;AAC9D,+BAA8B;AAC9B,mEAAwD;AACxD,uFAAoF;AACpF,+CAA4C;AAG5C,6EAA0E;AAC1E,iGAA8F;AAG9F,KAAK,CAAC,4CAA4C,yCAAmB,CAAC,gBAAgB,EAAE,EAAE;IACzF,MAAM,uBAAuB,GAAW,eAAe,CAAC;IACxD,MAAM,aAAa,GAAW,UAAU,CAAC;IACzC,MAAM,aAAa,GAAkB,+BAAY,CAAC,GAAG,CAAC,yBAAO,CAAC,aAAa,CAAC,CAAC;IAC7E,MAAM,QAAQ,GAAW,MAAM,CAAC;IAChC,IAAI,+BAAgE,CAAC;IACrE,IAAI,cAA8B,CAAC;IACnC,MAAM,kCAAkC,GAAuC,+BAAY,CAAC,GAAG,CAC9F,yBAAO,CAAC,kCAAkC,CAC1C,CAAC;IAEF,UAAU,CAAC;QACV,0FAA0F;QAC1F,eAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;QACpC,eAAM,CAAC,KAAK,CACX,kJAAkJ,CAClJ,CAAC;QACF,eAAM,CAAC,KAAK,CAAC,gFAAgF,CAAC,CAAC;QAC/F,kCAAkC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QACvD,MAAM,8BAA8B,GACnC,mBAAmB;YACnB,kBAAkB;YAClB,aAAa;YACb,WAAW,uBAAuB,IAAI;YACtC,aAAa;YACb,kDAAkD;YAClD,yDAAyD;YACzD,kBAAkB;YAClB,oCAAoC,CAAC;QACtC,kCAAkC,CAAC,qBAAqB,CAAC,8BAA8B,CAAC,CAAC;QACzF,MAAM,oBAAoB,GAAW,+CAA+C,uBAAuB,EAAE,CAAC;QAC9G,aAAa,CAAC,cAAc,CAAC,oBAAoB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AAkF,EAAE;QACxF,kCAAkC,CAAC,SAAS,GAAG,uBAAuB,CAAC;QACvE,kCAAkC,CAAC,aAAa,GAAG,aAAa,CAAC;QACjE,uGAAuG;QACvG,kCAAkC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QACvD,IAAA,aAAM,EAAC,kCAAkC,CAAC,gBAAgB,EAAE,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;IAChG,CAAC,CAAC,CAAC;IAEH,oVAAoV;IACpV,IAAI,CAAC,sEAAsE,EAAE;QAC5E,MAAM,oBAAoB,GAAW,kCAAkC,CAAC,gCAAgC,EAAE,CAAC;QAC3G,IAAA,aAAM,EAAC,oBAAoB,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;IAEH,aAAa,CAAC;QACb,MAAM,aAAa,GAAW,+CAAsB,CAAC,gBAAgB,EAAE,CAAC;QACxE,IAAI;YACH,6GAA6G;YAC7G,kCAAkC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YACvD,kCAAkC,CAAC,kBAAkB,EAAE,CAAC;YACxD,kCAAkC,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC;SAC1E;QAAC,OAAO,CAAC,EAAE;YACX,eAAM,CAAC,KAAK,CAAC,yCAAyC,aAAa,6BAA6B,CAAC,EAAE,CAAC,CAAC;SACrG;IACF,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -65,13 +65,13 @@ suite(`Create predefined workspace and check it ${BASE_TEST_CONSTANTS.TEST_ENVIR
|
|
|
65
65
|
});
|
|
66
66
|
|
|
67
67
|
// verify that just created workspace is available for the dedicated user
|
|
68
|
-
test('Validate
|
|
68
|
+
test('Validate that predefined namespace has been created', function (): void {
|
|
69
69
|
const expectedProject: string = shellExecutor.executeArbitraryShellScript('oc get projects');
|
|
70
70
|
expect(expectedProject).contains(predefinedNamespaceName);
|
|
71
71
|
});
|
|
72
72
|
|
|
73
|
-
//
|
|
74
|
-
test('
|
|
73
|
+
// ensure the generated DevSpace is created within the predefined namespace
|
|
74
|
+
test('Create test DevWorkspace and verify its creation within the predefined namespace', function (): void {
|
|
75
75
|
kubernetesCommandLineToolsExecutor.namespace = predefinedNamespaceName;
|
|
76
76
|
kubernetesCommandLineToolsExecutor.workspaceName = workspaceName;
|
|
77
77
|
// relogin under the admin user (because regular user does not have permissions for getting pod states)
|
|
@@ -79,8 +79,8 @@ suite(`Create predefined workspace and check it ${BASE_TEST_CONSTANTS.TEST_ENVIR
|
|
|
79
79
|
expect(kubernetesCommandLineToolsExecutor.waitDevWorkspace().stdout).contains('condition met');
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
// verify that
|
|
83
|
-
test('Validate the
|
|
82
|
+
// verify that the newly created workspace, identified by a unique name, exists within the predefined namespace. Given that multiple users may use the same cluster and create multiple DevSpaces within the same OpenShift project, it's essential to confirm that our test project, distinguished by a unique name, has been successfully created.
|
|
83
|
+
test('Validate the creation of the correct DevWorkspace with a unique name', function (): void {
|
|
84
84
|
const ocDevWorkspaceOutput: string = kubernetesCommandLineToolsExecutor.getDevWorkspaceYamlConfiguration();
|
|
85
85
|
expect(ocDevWorkspaceOutput).includes(workspaceName);
|
|
86
86
|
});
|