-
-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing scripts do not work #369
Comments
When you run the test script it will create |
steps to my success. sudo apt install vagrant
sudo apt install VirtualBox
git clone https://github.com/davestephens/ansible-nas.git
cd ansible-nas
./tests/test.sh # This generates tests/test.yml. This is what you will be changing to update the test environment.
./tests/test-vagrant.sh -vvv # For some reason the vm never starts unless I add -vvv but its okay cause I like watching it anyways.
nano tests/test.yml
vagrant provision I'm sure with the transitioning applications to roles that some of the testing scripts will need to be reworked. |
@PurpleNinja225 - thanks for the help, your instructions were informative. A couple of items I uncovered in getting testing to work. First, the Vagrant box
Second, I ran Third, I was unable to get the Lastly, and this is particular to my development environment, I have been developing remotely (on my home lab), and using the |
I am struggling too with the testing scripts, I will post updates on my findings:
- name: update apt packages
apt:
update_cache: true right under the first - import_tasks: tasks/users.yml
tags: users
|
I also have problems running the test scripts. Running
When running the
To fix this i added the following to my Vagrantfile
|
Your steps should be documented on the 'website' because the old link to david stephens .uk page is now redirected but not found... The website does not clearly state how to test. It's a nice process to get it slowly going and learning by trial and error, but still would be nice to have it clearly documented |
Describe the bug
I was following this tutorial ( https://davidstephens.uk/ansible-nas/testing/ ) to check out the Ansible-NAS. I was expecting to access Heimdall on http://172.30.1.5:10080 after running or
test-vagrant.sh
. That did not happen.Also, as an added bonus, running
test.sh
gaveERROR! the playbook: /etc/ansible/playbooks/playbook_under_test/nas.yml could not be found
. Not sure if that was supposed to happen.Expected behavior
To be able to reach Heimdall on http://172.30.1.5:10080 after running or
test-vagrant.sh
Actual behavior
after running the script, I get this output
However, when I check VirtualBox dashboard, I see that the actual VM is not actually running or even created. I have to separately run
vagrant up
to actually spin the VM. Still, after this, the address is still not reachable.Steps to reproduce
On ubuntu 20.04 machine they should execute:
sudo apt install vagrant sudo apt install VirtualBox git clone https://github.com/davestephens/ansible-nas.git cd ansible-nas/tests ./test-vagrant.sh
Additional context
New user, just looking for a fast way to spin up a demo instance.
The text was updated successfully, but these errors were encountered: