-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused manual test setup (#394)
- Loading branch information
Slavek Kabrda
authored
Oct 11, 2021
1 parent
684e44f
commit 2d3542a
Showing
10 changed files
with
0 additions
and
382 deletions.
There are no files selected for viewing
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,53 +52,6 @@ To contribute, follow the contributing guidelines above. | |
|
||
To test the roles provided by this project, you can follow the instructions in the manual tests [readme.md][tests]. | ||
|
||
### Integration testing | ||
|
||
This project uses [Kitchen][kitchen] as an integration tests engine. To verify integration tests, install [Vagrant][vagrant] on your machine. | ||
|
||
Kitchen allows you to test specific recipes described in [kitchen.yml][kitchen_yml]. There is only one basic recipe on ubuntu but that should be enough to develop others or to add features in TDD. | ||
|
||
To list available targets, you can use the `list` command: | ||
|
||
```bash | ||
bundle exec kitchen list | ||
``` | ||
|
||
To test a specific target, you can run: | ||
|
||
```bash | ||
bundle exec kitchen test <target> | ||
``` | ||
|
||
So for example, if you want to test the agent installation, you can run: | ||
|
||
```bash | ||
bundle exec kitchen test default-ubuntu-1810 | ||
``` | ||
|
||
### Development loop | ||
|
||
To develop some fixes or some features, the easiest way is to work on the platform and version of your choice, setting the machine up with the `create` command and applying the recipe with the `converge` command. If you want to explore the machine and try different things, you can also login into the machine with the `login` command. | ||
|
||
```bash | ||
# Create the relevant vagrant virtual machine | ||
bundle exec kitchen create default-ubuntu-1810 | ||
|
||
# Converge to test your recipe | ||
bundle exec kitchen converge default-ubuntu-1810 | ||
|
||
# Login to your machine to check stuff | ||
bundle exec kitchen login default-ubuntu-1810 | ||
|
||
# Verify the integration tests for your machine | ||
bundle exec kitchen verify default-ubuntu-1810 | ||
|
||
# Clean your machine | ||
bundle exec kitchen destroy default-ubuntu-1810 | ||
``` | ||
|
||
It is advised that you work in TDD and that you write tests before making changes so that developing your feature or fix is just making tests pass. | ||
|
||
## Author Information | ||
|
||
[email protected] | ||
|
@@ -108,8 +61,5 @@ [email protected] --Forked from [email protected] | |
Datadog <[email protected]> --Forked from [email protected] | ||
|
||
|
||
[kitchen]: https://kitchen.ci | ||
[kitchen_yml]: https://github.com/DataDog/ansible-datadog/blob/master/kitchen.yml | ||
[slack]: https://datadoghq.slack.com | ||
[tests]: https://github.com/DataDog/ansible-datadog/blob/master/manual_tests/readme.md | ||
[vagrant]: https://www.vagrantup.com |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.