Skip to content

Commit 8afd93e

Browse files
committed
Remove s2i related tests
Signed-off-by: Denis Golovin dgolovin@redhat.com
1 parent 493f58c commit 8afd93e

File tree

1 file changed

+1
-40
lines changed

1 file changed

+1
-40
lines changed

test/unit/openshift/url.test.ts

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -68,45 +68,6 @@ suite('OpenShift/URL', () => {
6868
}
6969
}`;
7070

71-
const portsOutput = `{
72-
"apiVersion": "v1",
73-
"kind": "Service",
74-
"metadata": {
75-
"annotations": {
76-
"app.kubernetes.io/component-source-type": "git",
77-
"app.kubernetes.io/url": "https://github.com/dgolovin/nodejs-ex"
78-
},
79-
"creationTimestamp": "2019-01-04T01:03:34Z",
80-
"labels": {
81-
"app": "app1",
82-
"app.kubernetes.io/component-name": "node",
83-
"app.kubernetes.io/component-type": "nodejs",
84-
"app.kubernetes.io/component-version": "latest",
85-
"app.kubernetes.io/name": "app1"
86-
},
87-
"name": "node-app1",
88-
"namespace": "proj1",
89-
"resourceVersion": "1580667",
90-
"selfLink": "/api/v1/namespaces/proj1/services/node-app1",
91-
"uid": "8f80c48b-0fbc-11e9-b2e1-00155d93400f"
92-
},
93-
"spec": {
94-
"clusterIP": "172.30.156.161",
95-
"ports": [
96-
"8080/TCP",
97-
"8081/TCP"
98-
],
99-
"selector": {
100-
"deploymentconfig": "node-app1"
101-
},
102-
"sessionAffinity": "None",
103-
"type": "ClusterIP"
104-
},
105-
"status": {
106-
"loadBalancer": {}
107-
}
108-
}`;
109-
11071
function genUlrListExecResult(state: string): Cli.CliExitData {
11172
return {error: undefined, stdout: JSON.stringify({
11273
kind: 'List',
@@ -186,7 +147,7 @@ suite('OpenShift/URL', () => {
186147
test('rejects when fails to create Url', () => {
187148
inputStub.onFirstCall().resolves();
188149
execStub.onFirstCall().resolves({error: null, stdout: '', stderr: ''});
189-
execStub.onSecondCall().resolves({error: 'Error', stdout: portsOutput, stderr: ''});
150+
execStub.onSecondCall().resolves({error: 'Error', stdout: '', stderr: ''});
190151
return Url.create(null).catch((err) => {
191152
expect(err).equals(`Failed to create URL for component '${componentItem.getName()}'`);
192153
});

0 commit comments

Comments
 (0)