Skip to content

Commit 43d3fdd

Browse files
authored
Use devspaces-dashboard.openshift-devspaces.svc to get devfile yaml (#23366)
Signed-off-by: Dmytro Nochevnov <dnochevn@redhat.com>
1 parent 740ef2d commit 43d3fdd

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

tests/e2e/utils/DevfilesHelper.ts

+2-9
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,8 @@ import { CLASSES } from '../configs/inversify.types';
2121
export class DevfilesHelper {
2222
public getInternalClusterURLToDevFile(devFileName: string): string {
2323
const devfileSampleURIPrefix: string = `/dashboard/api/airgap-sample/devfile/download?id=${devFileName}`;
24-
let serviceClusterIp: string = '';
25-
let servicePort: string = '';
26-
serviceClusterIp = this.getShellExecutor().executeArbitraryShellScript(
27-
`oc get svc devspaces-dashboard -n ${BASE_TEST_CONSTANTS.TS_PLATFORM}-${BASE_TEST_CONSTANTS.TESTING_APPLICATION_NAME()} -o=jsonpath='{.spec.clusterIP}'`
28-
);
29-
servicePort = this.getShellExecutor().executeArbitraryShellScript(
30-
`oc get svc devspaces-dashboard -n ${BASE_TEST_CONSTANTS.TS_PLATFORM}-${BASE_TEST_CONSTANTS.TESTING_APPLICATION_NAME()} -o=jsonpath='{.spec.ports[*].port}'`
31-
);
32-
return `http://${serviceClusterIp}:${servicePort}${devfileSampleURIPrefix}`;
24+
25+
return `http://devspaces-dashboard.openshift-devspaces.svc:8080${devfileSampleURIPrefix}`;
3326
}
3427

3528
/**

0 commit comments

Comments
 (0)