Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Bug 522209 - Port the CF tests
- Loading branch information
Showing
25 changed files
with
1,124 additions
and
3 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
16 changes: 16 additions & 0 deletions
16
modules/orionode/test/testData/manifestTest/appCustomConfig.yml
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,16 @@ | ||
| --- | ||
| path: . | ||
| domain: example.com | ||
| memory: 256M | ||
| instances: 1 | ||
| services: | ||
| - singular-backend | ||
|
|
||
| # app-specific configuration | ||
| applications: | ||
| - name: springtock | ||
| host: 765shower | ||
| path: ./april/build/libs/april-weather.war | ||
| - name: wintertick | ||
| subdomain: 321flurry | ||
| path: ./december/target/december-weather.war |
16 changes: 16 additions & 0 deletions
16
modules/orionode/test/testData/manifestTest/appsNestedServices.yml
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,16 @@ | ||
| applications: | ||
| - name: mysample | ||
| memory: 256M | ||
| instances: 1 | ||
| host: tapp | ||
| domain: ctapps.io | ||
| path: . | ||
| services: | ||
| rediscloud-8cccc: | ||
| type: rediscloud | ||
| provider: garantiadata | ||
| plan: 20mb | ||
| mongolab-6d208: | ||
| type: mongolab | ||
| provider: mongolab | ||
| plan: sandbox |
10 changes: 10 additions & 0 deletions
10
modules/orionode/test/testData/manifestTest/argReplace.yml
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,10 @@ | ||
| --- | ||
| applications: | ||
| - name: orionode | ||
| memory: 128M | ||
| instances: 1 | ||
| path: . | ||
| url: orionode${random-word}.${target-base} | ||
| runtime: node08 | ||
| command: node server.js | ||
| framework: node |
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,4 @@ | ||
| --- | ||
| applications: | ||
| - name: myTestApp | ||
| someProperty: testValue |
2 changes: 2 additions & 0 deletions
2
modules/orionode/test/testData/manifestTest/badPropertyShape.yml
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,2 @@ | ||
| applications: | ||
| : asd - |
32 changes: 32 additions & 0 deletions
32
modules/orionode/test/testData/manifestTest/complexEnvAndApps.yml
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,32 @@ | ||
| --- | ||
| properties: | ||
| app-host: ${name} | ||
|
|
||
| path: . | ||
| env: | ||
| RAILS_ENV: ${rails-env} | ||
| RACK_ENV: ${rails-env} | ||
| BUNDLE_WITHOUT: test:development | ||
| services: | ||
| frontend-db: | ||
| type: cleardb | ||
| provider: cleardb | ||
| plan: shock | ||
| mem: 512M | ||
| disk: 1G | ||
| instances: 1 | ||
| host: none | ||
| domain: none | ||
|
|
||
| # app-specific configuration | ||
| applications: | ||
| - name: frontend | ||
| host: ${app-host} | ||
| domain: ${target-base} | ||
| instances: 2 | ||
| command: bundle exec rake server:start_command | ||
| - name: app2-worker1 | ||
| instances: 2 | ||
| command: bundle exec rake VERBOSE=true QUEUE=* | ||
| - name: app2-worker2 | ||
| command: bundle exec rake VERBOSE=true |
13 changes: 13 additions & 0 deletions
13
modules/orionode/test/testData/manifestTest/globalAndInherit.yml
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,13 @@ | ||
| --- | ||
| inherit: simple-base-manifest.yml | ||
| applications: | ||
| - name: springstorm | ||
| memory: 512M | ||
| instances: 1 | ||
| host: 765deluge | ||
| path: ./april/build/libs/april-weather.war | ||
| - name: winterblast | ||
| memory: 1G | ||
| instances: 2 | ||
| host: 321blizzard | ||
| path: ./december/target/december-weather.war |
18 changes: 18 additions & 0 deletions
18
modules/orionode/test/testData/manifestTest/inheritMultiSection.yml
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,18 @@ | ||
| --- | ||
| inherit: base-manifest.yml | ||
|
|
||
| properties: | ||
| rails-env: production | ||
| app-host: app1-host | ||
|
|
||
| applications: | ||
| - name: app1-web | ||
| host: ${app-host} | ||
| domain: ${target-base} | ||
| instances: 8 | ||
| command: bundle exec rake server:start_command | ||
| - name: app1-worker1 | ||
| instances: 4 | ||
| command: bundle exec rake VERBOSE=true QUEUE=* | ||
| - name: app1-worker2 | ||
| command: bundle exec rake VERBOSE=true |
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,6 @@ | ||
| --- | ||
| applications: | ||
| - name: quotetest | ||
| memory: 512M | ||
| command: node_modules/.bin/foo --foo "bar" --baz "" -- fizz buzz | ||
| test: hi |
2 changes: 2 additions & 0 deletions
2
modules/orionode/test/testData/manifestTest/missingPropertyName.yml
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,2 @@ | ||
| applications: | ||
| - : asd |
2 changes: 2 additions & 0 deletions
2
modules/orionode/test/testData/manifestTest/missingPropertyValue.yml
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,2 @@ | ||
| applications: | ||
| - name: : |
24 changes: 24 additions & 0 deletions
24
modules/orionode/test/testData/manifestTest/multiAppsNestedServices.yml
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,24 @@ | ||
| applications: | ||
| - name: publisher | ||
| memory: 64M | ||
| path: ./publisher | ||
| domain: cfapps.io | ||
| host: publisher | ||
| instances: 1 | ||
| services: | ||
| work-queue: | ||
| type: rediscloud | ||
| provider: garantiadata | ||
| plan: 20mb | ||
| depends-on: ./subscriber | ||
| - name: subscriber | ||
| memory: 64M | ||
| path: ./subscriber | ||
| domain: cfapps.io | ||
| host: subscriber | ||
| instances: 1 | ||
| services: | ||
| work-queue: | ||
| type: rediscloud | ||
| provider: garantiadata | ||
| plan: 20mb |
21 changes: 21 additions & 0 deletions
21
modules/orionode/test/testData/manifestTest/multiNestedComments.yml
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,21 @@ | ||
| --- | ||
| applications: #Reference http://docs.cloudfoundry.com/docs/using/deploying-apps/manifest.html | ||
| - name: TwitterSearchAnalyzerNode #Application Name. Unique to the user's Space | ||
| memory: 256M #The maximum memory to allocate to each application instance | ||
| instances: 1 #The number of instances of the application to start | ||
| url: TwitterSearchAnalyzerNode${random-word}.${target-base} #deprecated, kept for temporary compatibility | ||
| host: TwitterSearchAnalyzerNode-${random-word} #Hostname for app routing. Unique to domain | ||
| domain: ${target-base} #Bluemix Parent Domain Name | ||
| path: . #Path to the application to be pushed | ||
| command: node app.js #The command to use to start the application | ||
| services: | ||
| ctas-tsa-node: #Identifier for CompaniesTextAnalyticsService Bound Service instance | ||
| label: CompaniesTextAnalyticsService | ||
| provider: jStart | ||
| version: '0.1' | ||
| plan: 'free' | ||
| ntas-tsa-node: #Identifier for NamesTextAnalyticsService Bound Service instance | ||
| label: NamesTextAnalyticsService | ||
| provider: jStart | ||
| version: '0.1' | ||
| plan: 'free' |
23 changes: 23 additions & 0 deletions
23
modules/orionode/test/testData/manifestTest/multiNestingComments.yml
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,23 @@ | ||
| --- | ||
| # this manifest deploys two applications | ||
| # apps are in flame and spark directories | ||
| # flame and spark are in fireplace | ||
| # cf push should be run from fireplace | ||
| applications: | ||
| - name: spark | ||
| memory: 1G | ||
| buildpack: http://example.com#something | ||
| instances: 2 | ||
| host: flint-99 | ||
| domain: example.com | ||
| path: ./spark/ | ||
| services: | ||
| - mysql-flint-99 | ||
| - name: flame | ||
| memory: 1G | ||
| instances: 2 | ||
| host: burnin-77 | ||
| domain: example.com | ||
| path: ./flame/ | ||
| services: | ||
| - redis-burnin-77 |
13 changes: 13 additions & 0 deletions
13
modules/orionode/test/testData/manifestTest/multiNestingNoSpacing.yml
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,13 @@ | ||
| applications: | ||
| - name: spock | ||
| memory: 1G | ||
| instances: 1 | ||
| services: | ||
| - volcan | ||
| - uss-enterprise | ||
| - name: kirk | ||
| memory: 1G | ||
| instances: 1 | ||
| services: | ||
| - earth | ||
| - spock |
9 changes: 9 additions & 0 deletions
9
modules/orionode/test/testData/manifestTest/quotedPropertiesManifest.yml
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,9 @@ | ||
| --- | ||
| applications: | ||
| - name: quoted-path-application | ||
| memory: 64M | ||
| instances: 1 | ||
| path: "." | ||
| host: 'quoted-path-application' | ||
| domain: cloud-foundry-domain.org | ||
| command: node app.js |
11 changes: 11 additions & 0 deletions
11
modules/orionode/test/testData/manifestTest/servicesWithSpaces.yml
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,11 @@ | ||
| --- | ||
| applications: | ||
| - name: cf-node-mb-TEST | ||
| host: cf-node-mb-TEST3 | ||
| command: node server.js | ||
| path: . | ||
| instances: 1 | ||
| memory: 256MB | ||
| services: | ||
| - Redis Cloud-fo service | ||
| - Redis-two |
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,7 @@ | ||
| applications: | ||
| - name: nodetestdh01 | ||
| memory: 64M | ||
| instances: 2 | ||
| host: crn | ||
| domain: csapps.io | ||
| path: . |
14 changes: 14 additions & 0 deletions
14
modules/orionode/test/testData/manifestTest/simpleGlobalProps.yml
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,14 @@ | ||
| --- | ||
| # all applications use these settings and services | ||
| domain: example.com | ||
| memory: 1G | ||
| instances: 1 | ||
| services: | ||
| - clockwork-mysql | ||
| applications: | ||
| - name: springtock | ||
| host: tock09876 | ||
| path: ./spring-music/build/libs/spring-music.war | ||
| - name: springtick | ||
| subdomain: tick09875 | ||
| path: ./spring-music/build/libs/spring-music.war |
22 changes: 22 additions & 0 deletions
22
modules/orionode/test/testData/manifestTest/simpleTwoApps.yml
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,22 @@ | ||
| --- | ||
| # this manifest deploys two applications | ||
| # apps are in flame and spark directories | ||
| # flame and spark are in fireplace | ||
| # cf push should be run from fireplace | ||
| applications: | ||
| - name: spark | ||
| memory: 1G | ||
| instances: 2 | ||
| host: flint-99 | ||
| domain: example.com | ||
| path: ./spark/ | ||
| services: | ||
| - mysql-flint-99 | ||
| - name: flame | ||
| memory: 1G | ||
| instances: 2 | ||
| host: burnin-77 | ||
| domain: example.com | ||
| path: ./flame/ | ||
| services: | ||
| - redis-burnin-77 |
9 changes: 9 additions & 0 deletions
9
modules/orionode/test/testData/manifestTest/targetBaseManifest.yml
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,9 @@ | ||
| --- | ||
| applications: | ||
| - name: TargetBaseExampleApp | ||
| memory: 256M | ||
| instances: 1 | ||
| url: App-${random-word}.${target-base} | ||
| host: App-${random-word} | ||
| domain: ${target-base} | ||
| path: . |