Sha256: a86adc891771dbfb145528f55f872127b409c5c499fdd09f7f4e75236f086c09
Contents?: true
Size: 1.85 KB
Versions: 3
Compression:
Stored size: 1.85 KB
Contents
#!/bin/bash # This tests test vagrant-registration plugin running on Fedora # with libvirt. If you do not have Vagrant installed or if you # have vagrant-libvirt package on your system, Vagrant will be # installed or vagrant-libvirt removed respectively. In that case # you need sudo to run the tests. If you do not run Fedora, make # sure you have Vagrant installed (any provider should do if you # add RHEL box called 'rhel-7'). # # IMPORTANT: Tests need valid credentials to actually test # registration. This can be provided in form of environment # variables. # # For testing subscription-manager on RHEL export # VAGRANT_REGISTRATION_USERNAME and # VAGRANT_REGISTRATION_PASSWORD. # # NOTE: This will install a development version of # vagrant-registration on your system. # DIR=$(dirname $(readlink -f "$0")) # Import test helpers . $DIR/helpers.sh setup_tests # Test correct credentials clean_up export VAGRANT_VAGRANTFILE=$DIR/vagrantfiles/Vagrantfile.rhel_multi_machine test_success 'vagrant up on RHEL multi_machine setup' 'vagrant up' test_output 'first machine is registered' \ 'vagrant ssh rhel1-valid-credentials -c '\''sudo subscription-manager register'\''' \ 'This system is already registered.' test_output 'second machine is registered' \ 'vagrant ssh rhel2-valid-credentials -c '\''sudo subscription-manager register'\''' \ 'This system is already registered.' test_success 'vagrant halt on RHEL multi_machine setup' 'vagrant halt rhel1-valid-credentials' test_success 'vagrant halt on RHEL multi_machine setup' 'vagrant destroy' # Test wrong credentials clean_up export VAGRANT_VAGRANTFILE=$DIR/vagrantfiles/Vagrantfile.rhel_wrong_credentials test_failure 'vagrant up on RHEL with wrong credentials should fail' 'vagrant up' test_success 'vagrant destroy on RHEL with wrong credentials' 'vagrant destroy' print_results
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vagrant-registration-0.0.15 | tests/run.sh |
vagrant-registration-0.0.13 | tests/run.sh |
vagrant-registration-0.0.12 | tests/run.sh |