diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-configure-app.yml | 18 | ||||
-rw-r--r-- | tests/test-haskell-app.yml | 16 | ||||
-rw-r--r-- | tests/test-simple-app.yml | 15 | ||||
-rw-r--r-- | tests/test.yml | 9 |
4 files changed, 49 insertions, 9 deletions
diff --git a/tests/test-configure-app.yml b/tests/test-configure-app.yml new file mode 100644 index 0000000..06e5e92 --- /dev/null +++ b/tests/test-configure-app.yml | |||
@@ -0,0 +1,18 @@ | |||
1 | --- | ||
2 | - name: Deploy an app & configure system details on clever | ||
3 | hosts: localhost | ||
4 | remote_user: root | ||
5 | roles: | ||
6 | - role: clever | ||
7 | vars: | ||
8 | clever_token: 123abc | ||
9 | clever_secret: cba321 | ||
10 | clever_app: app_00000000-0000-0000-0000-000000000000 | ||
11 | clever_domain: my-app.example.org | ||
12 | clever_syslog_server: 172.10.0.1:54000 | ||
13 | clever_build_flavor: M | ||
14 | post_tasks: | ||
15 | - name: Check CC_RUN_COMMAND is not part of the environment | ||
16 | fail: | ||
17 | msg: "CC_RUN_COMMAND env variable should not be present in the environment dict" | ||
18 | when: clever_env.CC_RUN_COMMAND is defined | ||
diff --git a/tests/test-haskell-app.yml b/tests/test-haskell-app.yml new file mode 100644 index 0000000..69a25ae --- /dev/null +++ b/tests/test-haskell-app.yml | |||
@@ -0,0 +1,16 @@ | |||
1 | --- | ||
2 | - name: Deploy a Haskell app to clever | ||
3 | hosts: localhost | ||
4 | remote_user: root | ||
5 | roles: | ||
6 | - role: clever | ||
7 | vars: | ||
8 | clever_token: 123abc | ||
9 | clever_secret: cba321 | ||
10 | clever_app: app_00000000-0000-0000-0000-000000000000 | ||
11 | clever_haskell_entry_point: coucou-server | ||
12 | post_tasks: | ||
13 | - name: Check CC_RUN_COMMAND is present | ||
14 | fail: | ||
15 | msg: "CC_RUN_COMMAND env variable should be added for Haskell apps" | ||
16 | when: not clever_env.CC_RUN_COMMAND is defined | ||
diff --git a/tests/test-simple-app.yml b/tests/test-simple-app.yml new file mode 100644 index 0000000..e0b905a --- /dev/null +++ b/tests/test-simple-app.yml | |||
@@ -0,0 +1,15 @@ | |||
1 | --- | ||
2 | - name: Deploy simple app to clever | ||
3 | hosts: localhost | ||
4 | remote_user: root | ||
5 | roles: | ||
6 | - role: clever | ||
7 | vars: | ||
8 | clever_token: 123abc | ||
9 | clever_secret: cba321 | ||
10 | clever_app: app_00000000-0000-0000-0000-000000000000 | ||
11 | post_tasks: | ||
12 | - name: Check CC_RUN_COMMAND is not part of the environment | ||
13 | fail: | ||
14 | msg: "CC_RUN_COMMAND env variable should not be present in the environment dict" | ||
15 | when: clever_env.CC_RUN_COMMAND is defined | ||
diff --git a/tests/test.yml b/tests/test.yml deleted file mode 100644 index 663bc6b..0000000 --- a/tests/test.yml +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | --- | ||
2 | - hosts: localhost | ||
3 | remote_user: root | ||
4 | roles: | ||
5 | - role: clever | ||
6 | vars: | ||
7 | clever_token: 123abc | ||
8 | clever_secret: cba321 | ||
9 | clever_app: app_00000000-0000-0000-0000-000000000000 | ||