Skip to content

Commit

Permalink
Fixes #18181: improve documentation on rudder-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ncharles committed Sep 9, 2020
1 parent be7cdee commit 382e476
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -39,4 +39,4 @@ Run a platform on AWS (see doc/PROVIDERS.md for details) :
- use provider=aws in the platform description
- that's all

See doc/TESTS.md to ad new tests ans scenarios
See doc/TESTS.md to add new tests ans scenarios
23 changes: 23 additions & 0 deletions doc/TESTS.md
Expand Up @@ -76,4 +76,27 @@ This content can be generated from an existing directive, using:

`rtf test from-directive <platform> <directiveid> <test_name> <destination_path>`

Running a test scenario
-----------------------

Prerequisites:
You need ruby and serverspec installed on your system.

rudder-test comes with a test scenario to test ncf: `ncf_tests`
To run it, you need an environement set up with an empty system, with hostname `agent`
`
ncf.json:
{
"default":{ "run-with": "vagrant", "rudder-version": "6.1", "system": "debian10" },
"agent": { "rudder-setup": "empty"}
}
`
Then set it up with rtf
`rtf platform setup ncf`

And then run the scenario
`./rtf scenario ncf_tests ncf 6.1`

If there are any error, you may inspect logs on the VM in `/tmp/tmp.bunch_of_letter/test/acceptance/` (by default the VM is
destroyed after the scenario is run, so you'll need to remove the platform.teardown() and change destroyOnError to False l294 in rtf)

0 comments on commit 382e476

Please sign in to comment.