@eclipse-che/che-e2e
Advanced tools
Comparing version 7.86.0-next-3538049 to 7.86.0-next-77894cd
@@ -134,3 +134,3 @@ "use strict"; | ||
async selectProjectFromDropDawnList(projectName) { | ||
await this.driverHelper.waitAndClick(selenium_webdriver_1.By.xpath(`//span[@class="pf-c-menu__item-text" and text()="${projectName}"]`)); | ||
await this.driverHelper.waitAndClick(selenium_webdriver_1.By.xpath(`//span[@class="pf-v5-c-menu__item-text" and text()="${projectName}"]`)); | ||
} | ||
@@ -137,0 +137,0 @@ async findAndSelectProject(projectName) { |
@@ -23,2 +23,4 @@ "use strict"; | ||
'cd $PROJECT_SOURCE\n' + | ||
'export ARCH=$(uname -m)\n' + | ||
'export DATE=$(date +"%m%d%y")\n' + | ||
'export USER=$(oc whoami)\n' + | ||
@@ -28,8 +30,19 @@ 'export TKN=$(oc whoami -t)\n' + | ||
'export PROJECT=$(oc project -q)\n' + | ||
'export IMG="${REG}/${PROJECT}/hello"\n' + | ||
'export IMG="${REG}/${PROJECT}/hello:${DATE}"\n' + | ||
'podman login --tls-verify=false --username ${USER} --password ${TKN} ${REG}\n' + | ||
'podman build -t ${IMG} .\n' + | ||
'podman push --tls-verify=false ${IMG}\n' + | ||
'podman build -t ${IMG} -f Dockerfile.${ARCH}\n' + | ||
'podman push --tls-verify=false ${IMG}\n'; | ||
const runTestScript = '# Enable Kubedock\n' + | ||
'export KUBEDOCK_ENABLED=true\n' + | ||
'echo KUBEDOCK_ENABLED\n' + | ||
'/entrypoint.sh\n' + | ||
'export DATE=$(date +"%m%d%y")\n' + | ||
'export USER=$(oc whoami)\n' + | ||
'export TKN=$(oc whoami -t)\n' + | ||
'export REG="image-registry.openshift-image-registry.svc:5000"\n' + | ||
'export PROJECT=$(oc project -q)\n' + | ||
'export IMG="${REG}/${PROJECT}/hello:${DATE}"\n' + | ||
'podman login --tls-verify=false --username ${USER} --password ${TKN} ${REG}\n' + | ||
'podman run --rm ${IMG}'; | ||
const factoryUrl = 'https://github.com/l0rd/dockerfile-hello-world'; | ||
const factoryUrl = 'https://github.com/crw-qe/dockerfile-hello-world'; | ||
suiteSetup('Login', async function () { | ||
@@ -54,3 +67,3 @@ await loginTests.loginIntoChe(); | ||
const projectSection = await projectAndFileTests.getProjectViewSession(); | ||
(0, chai_1.expect)(await projectAndFileTests.getProjectTreeItem(projectSection, 'Dockerfile'), 'Files not imported').not.undefined; | ||
(0, chai_1.expect)(await projectAndFileTests.getProjectTreeItem(projectSection, 'Dockerfile.ppc64le'), 'Files not imported').not.undefined; | ||
}); | ||
@@ -63,3 +76,5 @@ test('Create and check container runs using kubedock and podman', function () { | ||
const output = kubernetesCommandLineToolsExecutor.execInContainerCommand(testScript); | ||
(0, chai_1.expect)(output, 'Podman test script failed').contains('Hello from Kubedock!'); | ||
(0, chai_1.expect)(output, 'Podman test script failed').contains('Successfully tagged'); | ||
const runOutput = kubernetesCommandLineToolsExecutor.execInContainerCommand(runTestScript); | ||
(0, chai_1.expect)(runOutput, 'Podman test script failed').contains('Hello from Kubedock!'); | ||
}); | ||
@@ -66,0 +81,0 @@ suiteTeardown('Open dashboard and close all other tabs', async function () { |
@@ -60,3 +60,3 @@ "use strict"; | ||
'kubectl.*\\d+\\.\\d+\\.\\d+.*Kubernetes CLI\n' + | ||
'kustomize.*\\d+\\.\\d+\\.\\d+.*Kustomize CLI \\(built-in to kubectl\\)\n' + | ||
'kustomize.*\\d+\\.\\d+\\.\\d+.*Kustomize CLI\n' + | ||
'helm.*\\d+\\.\\d+\\.\\d+.*Helm CLI\n' + | ||
@@ -68,4 +68,7 @@ 'kn.*\\d+\\.\\d+\\.\\d+.*KNative CLI\n' + | ||
'virtctl.*\\d+\\.\\d+\\.\\d+.*KubeVirt CLI\n' + | ||
'rhoas.*\\d+\\.\\d+\\.\\d+.*Red Hat OpenShift Application Services CLI\n' + | ||
'jq.*\\d+\\.\\d+.*jq'; | ||
await webTerminal.typeAndEnterIntoWebTerminal(`help > ${fileForVerificationTerminalCommands}`); | ||
// need 5 sec. delay for finishing writing results of help command into txt file. The 5 sec delay is enough for the most cases | ||
await driverHelper.wait(5000); | ||
const commandResult = kubernetesCommandLineToolsExecutor.execInContainerCommand(`cat /home/user/${fileForVerificationTerminalCommands}`, webTerminalToolContainerName); | ||
@@ -72,0 +75,0 @@ (0, chai_1.expect)(commandResult).to.match(new RegExp(helpCommandExpectedResult)); |
{ | ||
"name": "@eclipse-che/che-e2e", | ||
"version": "7.86.0-next-3538049", | ||
"version": "7.86.0-next-77894cd", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -153,3 +153,3 @@ /** ******************************************************************* | ||
async selectProjectFromDropDawnList(projectName: string): Promise<void> { | ||
await this.driverHelper.waitAndClick(By.xpath(`//span[@class="pf-c-menu__item-text" and text()="${projectName}"]`)); | ||
await this.driverHelper.waitAndClick(By.xpath(`//span[@class="pf-v5-c-menu__item-text" and text()="${projectName}"]`)); | ||
} | ||
@@ -156,0 +156,0 @@ |
@@ -44,2 +44,4 @@ /** ******************************************************************* | ||
'cd $PROJECT_SOURCE\n' + | ||
'export ARCH=$(uname -m)\n' + | ||
'export DATE=$(date +"%m%d%y")\n' + | ||
'export USER=$(oc whoami)\n' + | ||
@@ -49,9 +51,22 @@ 'export TKN=$(oc whoami -t)\n' + | ||
'export PROJECT=$(oc project -q)\n' + | ||
'export IMG="${REG}/${PROJECT}/hello"\n' + | ||
'export IMG="${REG}/${PROJECT}/hello:${DATE}"\n' + | ||
'podman login --tls-verify=false --username ${USER} --password ${TKN} ${REG}\n' + | ||
'podman build -t ${IMG} .\n' + | ||
'podman push --tls-verify=false ${IMG}\n' + | ||
'podman build -t ${IMG} -f Dockerfile.${ARCH}\n' + | ||
'podman push --tls-verify=false ${IMG}\n'; | ||
const runTestScript: string = | ||
'# Enable Kubedock\n' + | ||
'export KUBEDOCK_ENABLED=true\n' + | ||
'echo KUBEDOCK_ENABLED\n' + | ||
'/entrypoint.sh\n' + | ||
'export DATE=$(date +"%m%d%y")\n' + | ||
'export USER=$(oc whoami)\n' + | ||
'export TKN=$(oc whoami -t)\n' + | ||
'export REG="image-registry.openshift-image-registry.svc:5000"\n' + | ||
'export PROJECT=$(oc project -q)\n' + | ||
'export IMG="${REG}/${PROJECT}/hello:${DATE}"\n' + | ||
'podman login --tls-verify=false --username ${USER} --password ${TKN} ${REG}\n' + | ||
'podman run --rm ${IMG}'; | ||
const factoryUrl: string = 'https://github.com/l0rd/dockerfile-hello-world'; | ||
const factoryUrl: string = 'https://github.com/crw-qe/dockerfile-hello-world'; | ||
@@ -82,3 +97,3 @@ suiteSetup('Login', async function (): Promise<void> { | ||
const projectSection: ViewSection = await projectAndFileTests.getProjectViewSession(); | ||
expect(await projectAndFileTests.getProjectTreeItem(projectSection, 'Dockerfile'), 'Files not imported').not.undefined; | ||
expect(await projectAndFileTests.getProjectTreeItem(projectSection, 'Dockerfile.ppc64le'), 'Files not imported').not.undefined; | ||
}); | ||
@@ -92,3 +107,5 @@ | ||
const output: ShellString = kubernetesCommandLineToolsExecutor.execInContainerCommand(testScript); | ||
expect(output, 'Podman test script failed').contains('Hello from Kubedock!'); | ||
expect(output, 'Podman test script failed').contains('Successfully tagged'); | ||
const runOutput: ShellString = kubernetesCommandLineToolsExecutor.execInContainerCommand(runTestScript); | ||
expect(runOutput, 'Podman test script failed').contains('Hello from Kubedock!') | ||
}); | ||
@@ -95,0 +112,0 @@ |
@@ -72,3 +72,3 @@ /** ******************************************************************* | ||
'kubectl.*\\d+\\.\\d+\\.\\d+.*Kubernetes CLI\n' + | ||
'kustomize.*\\d+\\.\\d+\\.\\d+.*Kustomize CLI \\(built-in to kubectl\\)\n' + | ||
'kustomize.*\\d+\\.\\d+\\.\\d+.*Kustomize CLI\n' + | ||
'helm.*\\d+\\.\\d+\\.\\d+.*Helm CLI\n' + | ||
@@ -80,5 +80,9 @@ 'kn.*\\d+\\.\\d+\\.\\d+.*KNative CLI\n' + | ||
'virtctl.*\\d+\\.\\d+\\.\\d+.*KubeVirt CLI\n' + | ||
'rhoas.*\\d+\\.\\d+\\.\\d+.*Red Hat OpenShift Application Services CLI\n' + | ||
'jq.*\\d+\\.\\d+.*jq'; | ||
await webTerminal.typeAndEnterIntoWebTerminal(`help > ${fileForVerificationTerminalCommands}`); | ||
// need 5 sec. delay for finishing writing results of help command into txt file. The 5 sec delay is enough for the most cases | ||
await driverHelper.wait(5000); | ||
const commandResult: string = kubernetesCommandLineToolsExecutor.execInContainerCommand( | ||
@@ -85,0 +89,0 @@ `cat /home/user/${fileForVerificationTerminalCommands}`, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 4 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 4 instances in 1 package
1091030
15954