-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix parametrized integration tests (#5826)
* Fix parametrized integration tests Signed-off-by: Parthvi Vala <[email protected]> * Fix test failure
- Loading branch information
1 parent
d567784
commit bf71fa3
Showing
6 changed files
with
156 additions
and
4 deletions.
There are no files selected for viewing
136 changes: 136 additions & 0 deletions
136
tests/examples/source/devfiles/nodejs/devfile-deploy-with-multiple-resources.yaml
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,136 @@ | ||
commands: | ||
- exec: | ||
commandLine: npm install | ||
component: runtime | ||
group: | ||
isDefault: true | ||
kind: build | ||
workingDir: /project | ||
id: install | ||
- exec: | ||
commandLine: npm start | ||
component: runtime | ||
group: | ||
isDefault: true | ||
kind: run | ||
workingDir: /project | ||
id: run | ||
- exec: | ||
commandLine: npm run debug | ||
component: runtime | ||
group: | ||
isDefault: true | ||
kind: debug | ||
workingDir: /project | ||
id: debug | ||
- exec: | ||
commandLine: npm test | ||
component: runtime | ||
group: | ||
isDefault: true | ||
kind: test | ||
workingDir: /project | ||
id: test | ||
- id: build-image | ||
apply: | ||
component: outerloop-build | ||
- id: deployk8s | ||
apply: | ||
component: outerloop-deploy | ||
- id: deployservice | ||
apply: | ||
component: outerloop-deploy-2 | ||
- id: deploy | ||
composite: | ||
commands: | ||
- build-image | ||
- deployk8s | ||
- deployservice | ||
group: | ||
kind: deploy | ||
isDefault: true | ||
components: | ||
- container: | ||
endpoints: | ||
- name: http-3000 | ||
targetPort: 3000 | ||
image: registry.access.redhat.com/ubi8/nodejs-14:latest | ||
memoryLimit: 1024Mi | ||
mountSources: true | ||
sourceMapping: /project | ||
name: runtime | ||
- name: outerloop-build | ||
image: | ||
imageName: "{{CONTAINER_IMAGE}}" | ||
dockerfile: | ||
uri: ./Dockerfile | ||
buildContext: ${PROJECTS_ROOT} | ||
rootRequired: false | ||
|
||
- name: outerloop-deploy | ||
kubernetes: | ||
inlined: | | ||
kind: Deployment | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: my-component | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: node-app | ||
template: | ||
metadata: | ||
labels: | ||
app: node-app | ||
spec: | ||
containers: | ||
- name: main | ||
image: {{CONTAINER_IMAGE}} | ||
resources: | ||
limits: | ||
memory: "128Mi" | ||
cpu: "500m" | ||
- name: outerloop-deploy-2 | ||
kubernetes: | ||
inlined: | | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app: my-cs | ||
name: my-cs | ||
spec: | ||
ports: | ||
- name: 5678-8080 | ||
port: 5678 | ||
protocol: TCP | ||
targetPort: 8080 | ||
selector: | ||
app: my-cs | ||
type: ClusterIP | ||
status: | ||
loadBalancer: {} | ||
metadata: | ||
description: Stack with Node.js 14 | ||
displayName: Node.js Runtime | ||
icon: https://nodejs.org/static/images/logos/nodejs-new-pantone-black.svg | ||
language: javascript | ||
name: mynodejs | ||
projectType: nodejs | ||
tags: | ||
- NodeJS | ||
- Express | ||
- ubi8 | ||
version: 1.0.1 | ||
schemaVersion: 2.2.0 | ||
starterProjects: | ||
- git: | ||
remotes: | ||
origin: https://github.com/odo-devfiles/nodejs-ex.git | ||
name: nodejs-starter | ||
variables: | ||
CONTAINER_IMAGE: quay.io/unknown-account/myimage |
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
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
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
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
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