wget is a sample that we've identified as medium complexity and we need an integration test for. Similar to other integration tests, the wget sample will be located at ./samples/wget/ with the following files:
wget.yml - DIFFER project file containing the templates to run. The templates should cover:
Downloading a file over http and https
Downloading a file that does not exist (404 error)
(additional templates for major functionality)
For now, target the Ubuntu installed wget binary, we'll identify a specific version in the future.
Also target a well known public internet server like google.com or similar rather than starting a HTTP server locally
A couple resources that can be used as an example:
samples/bftpd-6.1/bftpd.yml - FTP server
docs/source/recipes/network_client.rst - example netcat client
project.template.yml - example project that documents available configuration options
To run a project, use the following:
pipenv run python -m differ --force --verbose path/to/project.yml
# example for wget
pipenv run python -m differ --force --verbose ./samples/wget/wget.yml
I created a stub wget.yml project that you can add additional templates to.
wget
is a sample that we've identified as medium complexity and we need an integration test for. Similar to other integration tests, the wget sample will be located at./samples/wget/
with the following files:wget.yml
- DIFFER project file containing the templates to run. The templates should cover:wget
binary, we'll identify a specific version in the future.google.com
or similar rather than starting a HTTP server locallyA couple resources that can be used as an example:
samples/bftpd-6.1/bftpd.yml
- FTP serverdocs/source/recipes/network_client.rst
- example netcat clientproject.template.yml
- example project that documents available configuration optionsTo run a project, use the following:
I created a stub
wget.yml
project that you can add additional templates to.