Ian Southam
ca2ff2946e
Added some tests that test stuff
...
Specifically checking whether certain ip addresses get added and deleted
Also a rudementary test for the guest network ip
Much more to do!!
2015-03-16 11:35:16 +01:00
Sander Botman
92aca76c3b
Adding new model for the Site2SiteVpn configuration.
2015-03-16 11:35:15 +01:00
Sander Botman
1237ded02e
Fix on error reporting (null doesn't say much, so lets return the actual problem)
2015-03-16 11:35:15 +01:00
Ian Southam
c428d60e6b
Stop ignoring eth0
2015-03-16 11:35:15 +01:00
Ian Southam
dd6b643ceb
Do not use eth0 or eth1 for random tests
...
One or other will be the control interface of the box
2015-03-16 11:35:15 +01:00
Hugo Trippaers
2e968d85fe
Migrate ip alias commands
2015-03-16 11:35:15 +01:00
Ian Southam
cc5d72133e
Removed chef as we will definitely not go this way
2015-03-16 11:35:14 +01:00
Ian Southam
6a7a832ef5
iDo not do the post configure steps on a control interface
2015-03-16 11:35:14 +01:00
Hugo Trippaers
660fdbe238
modified StaticNatRule to use the new style
2015-03-16 11:35:14 +01:00
Sander Botman
fac3bdecd2
Adding the Vagrant configuration that will build xen and db servers.
2015-03-16 11:35:14 +01:00
Leo Simons
6e49675cf5
Have Vagrantfile errors go to STDERR so output is machine-parseable.
2015-03-16 11:35:13 +01:00
Leo Simons
f5e5b74646
Add more nics by default
2015-03-16 11:35:13 +01:00
Sander Botman
f423f3ea4e
New style manage VPN user command <Still need some testing with the VR image>
2015-03-16 11:35:13 +01:00
Ian Southam
2aed586bfc
Removed merge_cline - no longer required
...
Added the last pieces of vpc guest network
password server and associated FW rules
Added apache2 config and start of server
Corrected a bug in CsFile
Fixed some of the many pyLint bleats
2015-03-16 11:35:13 +01:00
Hugo Trippaers
6ae56b7275
Add forwarding rules to the new config format and do a little rewrite on
...
the models
2015-03-16 11:35:13 +01:00
Leo Simons
712fa9c92c
Tests for update_config.py
...
These are failing on my machine with cloud.log lines like
2014-08-07 14:34:09,509 Add dev eth2 table Table_eth2 10.0.2.0/24
2014-08-07 14:34:09,511 Address 10.0.2.106/24 on device eth2 not configured
2014-08-07 14:34:10,513 Device eth2 cannot be configured - device was not found
I think it's correct that they are failing -- this is work in progress.
2015-03-16 11:35:12 +01:00
Leo Simons
295e2caff0
Fix configure::waitForDevice when a device is missing.
...
Was using non-existing 'ip' variable.
2015-03-16 11:35:12 +01:00
Leo Simons
cf4cdde291
Fix update_config.py use of subprocess.
2015-03-16 11:35:12 +01:00
Leo Simons
5f87bde909
Set up rsync for systemvm patches.
...
Note the convenience of 'vagrant rsync-auto'.
2015-03-16 11:35:12 +01:00
Leo Simons
6ffb063863
Don't fail if you've logged into an older systemvm manually, before.
2015-03-16 11:35:11 +01:00
Leo Simons
6244265de0
Fancy line editor for Ian
2015-03-16 11:35:11 +01:00
Hugo Trippaers
3ab83fdba7
New style save password command
2015-03-16 11:35:11 +01:00
Hugo Trippaers
bda4c0d2c9
Move some static strings to constants and remove some duplicate code
2015-03-16 11:35:11 +01:00
Ian Southam
348167db51
This was a good one
...
Any cd command will cause rvm to override the trap handler in the shell
These means that vagrant_destroy will not get called at the end because in the node function it cds
Run the nose tests in a subshell
2015-03-16 11:35:11 +01:00
Ian Southam
05702ecd1a
Added guest network configuration
...
Added iptables config (adds but no deletes yet)
Apache config (VPC GN)
DNSMasq config (VPX GN)
2015-03-16 11:35:10 +01:00
Leo Simons
95e5f867f9
Second Attempt to get these tests working on python 2.6.
2015-03-16 11:35:10 +01:00
Leo Simons
f593255371
Attempt to get these tests working on python 2.6
2015-03-16 11:35:10 +01:00
Leo Simons
e405e94797
Replace serverspec with nose in systemvm test.sh
...
Also remove the serverspec-specific files.
2015-03-16 11:35:10 +01:00
Leo Simons
2188d8d633
Pure python tests for systemvm
...
This approach is instead of serverspec, but filling the same purpose. It's
main advantage is that it uses nose and python, just like the existing
marvin-based integration test suite.
2015-03-16 11:35:09 +01:00
Ian Southam
666dc16e58
Moved bag location to /et/cloudstack
...
Updated test script to also process command line
Added connmark stuff to merge
2015-03-16 11:35:09 +01:00
Hugo Trippaers
9b2a73370b
Put a netmask in the netmask field
2015-03-16 11:35:09 +01:00
Ian Southam
2a94ca69ce
Added some lost lines back using Hugo witchcraft
2015-03-16 11:35:09 +01:00
Ian Southam
ca4887d9cc
Test data for ipassociation
...
These files emulate commands coming from cloudstack itself
2015-03-16 11:35:08 +01:00
Ian Southam
c7c1f3202e
Plan B
...
Replace chef with a python script
configure.py will read the bags and (hopefully) create the desired state
At this stage this is ipassociation
This code should work for both VR and VPCrs
TODO:
iptables
ip route throw (present in VR but not in VPCr
Determine default route
Unit tests
2015-03-16 11:35:08 +01:00
Leo Simons
66b5260c90
Documentation and license headers for new systemvm testing tools.
2015-03-16 11:35:08 +01:00
Leo Simons
731a3bf9c3
Missing gem for vagrant magic
2015-03-16 11:35:08 +01:00
Leo Simons
8fb1deb33e
Massively simpler serverspec invocation
...
Give up on using test-kitchen, busser, and more of its complexity and
simply run serverspec directly, via SSH.
2015-03-16 11:35:07 +01:00
Leo Simons
04ad01a064
Commit missing .kitchen.yml
2015-03-16 11:35:07 +01:00
Leo Simons
58537c76fa
Use bundler to exec test-kitchen
2015-03-16 11:35:07 +01:00
Leo Simons
edfa79b770
junit report output for vagrant systemvm tests
2015-03-16 11:35:07 +01:00
Ian Southam
3811b8dc90
Split Databag in to separate class as I would now need this
2015-03-16 11:35:06 +01:00
Ian Southam
3077eb925b
Include the guestnetwork code
...
This takes the guestnetwork object and also creates an ip object
2015-03-16 11:35:06 +01:00
Leo Simons
274b746365
A working test-kitchen setup for testing systemvm boxes.
2015-03-16 11:35:06 +01:00
Hugo Trippaers
25b8510c43
Change vmdata to the new config system
2015-03-16 11:35:06 +01:00
Hugo Trippaers
43fd212298
Add some debug logging to keep track of timing
2015-03-16 11:35:05 +01:00
Hugo Trippaers
7b8050c056
Rewrite networkacl model to have separate entries for each rule
2015-03-16 11:35:05 +01:00
Ian Southam
9355dd7133
Corrected a hole in my logic
2015-03-16 11:35:05 +01:00
Ian Southam
0bf7d54722
1. Completed provider for ip rules (fwmark)
...
2. Added merge routine for guestnetwork config messages
3. Updated test script
2015-03-16 11:35:05 +01:00
Hugo Trippaers
583f177619
Disable cmdline check until it's fixed
2015-03-16 11:35:04 +01:00
Hugo Trippaers
0027db6cd1
Switch ip associations to new model and update the recipes
2015-03-16 11:35:04 +01:00