forked from redhat-developer/odo
-
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.
Add some tests for manifest deploy part of
odo deploy
command (#13)
Signed-off-by: Steven Groeger <groeges@uk.ibm.com>
- Loading branch information
Showing
4 changed files
with
103 additions
and
6 deletions.
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
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
40 changes: 40 additions & 0 deletions
40
tests/examples/source/devfilesV2/nodejs/devfile-no-manifest.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,40 @@ | ||
schemaVersion: "2.0.0" | ||
metadata: | ||
name: test-devfile | ||
alpha.build-dockerfile: "https://raw.githubusercontent.com/neeraj-laad/nodejs-stack-registry/build-deploy/devfiles/nodejs-basic/build/Dockerfile" | ||
projects: | ||
- name: nodejs-web-app | ||
git: | ||
location: "https://github.com/che-samples/web-nodejs-sample.git" | ||
components: | ||
- container: | ||
image: quay.io/eclipse/che-nodejs10-ubi:nightly | ||
mountSources: true | ||
name: "runtime" | ||
memoryLimit: 1024Mi | ||
env: | ||
- name: FOO | ||
value: "bar" | ||
endpoints: | ||
- name: '3000/tcp' | ||
targetPort: 3000 | ||
# odo not using currently, added to validate JSON Schema | ||
configuration: | ||
protocol: tcp | ||
scheme: http | ||
type: terminal | ||
commands: | ||
- exec: | ||
id: download dependencies | ||
commandLine: "npm install" | ||
component: runtime | ||
workingDir: ${CHE_PROJECTS_ROOT}/nodejs-web-app/app | ||
group: | ||
kind: build | ||
- exec: | ||
id: run the app | ||
commandLine: "nodemon app.js" | ||
component: runtime | ||
workingDir: ${CHE_PROJECTS_ROOT}/nodejs-web-app/app | ||
group: | ||
kind: run |
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