Skip to content

Commit

Permalink
Remove unused manual test setup (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
Slavek Kabrda authored Oct 11, 2021
1 parent 684e44f commit 2d3542a
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 382 deletions.
6 changes: 0 additions & 6 deletions .github/dependabot.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
.vagrant
*.retry
.venv

# pre and post tasks folders (user defined)
pre_tasks/
post_tasks/
.kitchen/
.kitchen.local.yml
.bundle

# OSX github datastore
**/.DS_Store
Expand Down
50 changes: 0 additions & 50 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
13 changes: 0 additions & 13 deletions Gemfile

This file was deleted.

269 changes: 0 additions & 269 deletions Gemfile.lock

This file was deleted.

1 change: 0 additions & 1 deletion chefignore

This file was deleted.

18 changes: 0 additions & 18 deletions kitchen.yml

This file was deleted.

4 changes: 0 additions & 4 deletions test/integration/default/default.yml

This file was deleted.

Loading

0 comments on commit 2d3542a

Please sign in to comment.