Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
Optimize tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nervo committed Oct 20, 2020
1 parent 1d74035 commit 04c8fe4
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 28 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ Enable http server:
```yaml
manala_supervisor_configs:
# Template based (file name based on template)
- template: configs/inet_http_server.conf.j2 # File name based on template name
- template: configs/inet_http_server.conf.j2
config:
port: "*:9001"
# Template based (force file name)
- file: inet.conf
template: configs/inet_http_server.conf.j2 # File name based on template name
template: configs/inet_http_server.conf.j2
config:
port: "*:9001"
```
Expand Down
5 changes: 5 additions & 0 deletions tests/0100_install.goss.yml → tests/0000_default.goss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ command:
{{ else }}
- "Version:"
{{ end }}

service:
supervisor:
enabled: true
running: true
File renamed without changes.
5 changes: 5 additions & 0 deletions tests/0200_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
state: absent
# Default
- import_role:
# Play role fully on first run, so that handlers don't breaks
name: manala.supervisor
vars:
manala_supervisor_config_file: tmp/config/default/default.conf
Expand All @@ -30,6 +31,7 @@
# Default - Deprecated
- import_role:
name: manala.supervisor
tasks_from: config
vars:
manala_supervisor_config_file: tmp/config/default/default_deprecated.conf
manala_supervisor_config:
Expand All @@ -42,6 +44,7 @@
# Default - Content
- import_role:
name: manala.supervisor
tasks_from: config
vars:
manala_supervisor_config_file: tmp/config/default/default_content.conf
manala_supervisor_config: |
Expand All @@ -55,6 +58,7 @@
# Template
- import_role:
name: manala.supervisor
tasks_from: config
vars:
manala_supervisor_config_file: tmp/config/default/template.conf
manala_supervisor_config_template: config/debian.j2
Expand All @@ -68,6 +72,7 @@
# Template - Deprecated
- import_role:
name: manala.supervisor
tasks_from: config
vars:
manala_supervisor_config_file: tmp/config/default/template_deprecated.conf
manala_supervisor_config_template: config/default.dev.j2
Expand Down
4 changes: 4 additions & 0 deletions tests/0300_configs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
path: tmp/configs/default
state: absent
- import_role:
# Play role fully on first run, so that handlers don't breaks
name: manala.supervisor
vars:
manala_supervisor_configs_dir: tmp/configs/default
Expand Down Expand Up @@ -99,6 +100,7 @@
loop: [bar, qux]
- import_role:
name: manala.supervisor
tasks_from: configs
vars:
manala_supervisor_configs_dir: tmp/configs/state
manala_supervisor_configs:
Expand All @@ -124,6 +126,7 @@
state: absent
- import_role:
name: manala.supervisor
tasks_from: configs
vars:
manala_supervisor_configs_dir: tmp/configs/defaults
manala_supervisor_configs_defaults:
Expand Down Expand Up @@ -151,6 +154,7 @@
loop: [foo, bar, baz, qux]
- import_role:
name: manala.supervisor
tasks_from: configs
vars:
manala_supervisor_configs_dir: tmp/configs/exclusive
manala_supervisor_configs_exclusive: true
Expand Down
6 changes: 0 additions & 6 deletions tests/0400_services.goss.yml

This file was deleted.

20 changes: 0 additions & 20 deletions tests/0400_services.yml

This file was deleted.

0 comments on commit 04c8fe4

Please sign in to comment.