forked from openshift/console
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request openshift#11831 from invincibleJai/bz-2106803
Bug 2106803: mock call to /api/devfile in e2e
- Loading branch information
Showing
3 changed files
with
155 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
138 changes: 138 additions & 0 deletions
138
...es/dev-console/integration-tests/testData/git-import/devfile-sample/devFileResources.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
{ | ||
"imageStream": { | ||
"kind": "ImageStream", | ||
"apiVersion": "image.openshift.io/v1", | ||
"metadata": {}, | ||
"spec": { | ||
"lookupPolicy": { | ||
"local": false | ||
} | ||
}, | ||
"status": { | ||
"dockerImageRepository": "" | ||
} | ||
}, | ||
"buildResource": { | ||
"kind": "BuildConfig", | ||
"apiVersion": "build.openshift.io/v1", | ||
"metadata": {}, | ||
"spec": { | ||
"source": { | ||
"type": "Git", | ||
"git": { | ||
"uri": "https://github.com/nodeshift-starters/devfile-sample" | ||
}, | ||
"contextDir": "." | ||
}, | ||
"strategy": { | ||
"type": "Docker", | ||
"dockerStrategy": { | ||
"dockerfilePath": "Dockerfile" | ||
} | ||
}, | ||
"output": { | ||
"to": { | ||
"kind": "ImageStreamTag", | ||
"name": "devfile-sample:latest:latest" | ||
} | ||
}, | ||
"resources": {}, | ||
"postCommit": {}, | ||
"nodeSelector": null | ||
}, | ||
"status": { | ||
"lastVersion": 0 | ||
} | ||
}, | ||
"deployResource": { | ||
"kind": "Deployment", | ||
"apiVersion": "apps/v1", | ||
"metadata": {}, | ||
"spec": { | ||
"selector": { | ||
"matchLabels": { | ||
"app": "devfile-sample" | ||
} | ||
}, | ||
"template": { | ||
"metadata": { | ||
"creationTimestamp": null | ||
}, | ||
"spec": { | ||
"containers": [ | ||
{ | ||
"name": "runtime", | ||
"image": "registry.access.redhat.com/ubi8/nodejs-16:latest", | ||
"ports": [ | ||
{ | ||
"name": "3000-tcp", | ||
"containerPort": 3000, | ||
"protocol": "TCP" | ||
} | ||
], | ||
"env": [ | ||
{ | ||
"name": "PROJECTS_ROOT", | ||
"value": "/projects" | ||
}, | ||
{ | ||
"name": "PROJECT_SOURCE", | ||
"value": "/projects" | ||
} | ||
], | ||
"resources": { | ||
"limits": { | ||
"memory": "1Gi" | ||
} | ||
}, | ||
"imagePullPolicy": "Always" | ||
} | ||
] | ||
} | ||
}, | ||
"strategy": { | ||
"type": "Recreate" | ||
} | ||
}, | ||
"status": {} | ||
}, | ||
"service": { | ||
"kind": "Service", | ||
"apiVersion": "v1", | ||
"metadata": {}, | ||
"spec": { | ||
"ports": [ | ||
{ | ||
"name": "port-3000", | ||
"port": 3000, | ||
"targetPort": 3000 | ||
}, | ||
{ | ||
"name": "http-3001", | ||
"port": 3001, | ||
"targetPort": "3001" | ||
} | ||
] | ||
}, | ||
"status": { | ||
"loadBalancer": {} | ||
} | ||
}, | ||
"route": { | ||
"kind": "Route", | ||
"apiVersion": "route.openshift.io/v1", | ||
"metadata": {}, | ||
"spec": { | ||
"path": "/", | ||
"to": { | ||
"kind": "Service", | ||
"name": "devfile-sample", | ||
"weight": null | ||
}, | ||
"port": { | ||
"targetPort": "3001" | ||
} | ||
}, | ||
"status": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters