Anders Ingemann
943aab111f
Add some more tests
2015-04-16 22:18:57 +02:00
Anders Ingemann
bbec32a987
Use stable/unstable, rather than wheezy/jessie
2015-04-16 22:18:57 +02:00
Anders Ingemann
50fabe65ec
remove duplicated code
2015-04-16 22:18:57 +02:00
Anders Ingemann
8bb34c604b
Fix serious bug in merge_dicts where the original dict would be modified
2015-04-16 22:18:57 +02:00
Anders Ingemann
70c282e804
Add log statements and remove unused SSHRPCManager
2015-04-16 22:18:57 +02:00
Anders Ingemann
9c6af89e78
Abstract bootstrapping, instance creation, booting etc..
...
This all now runs using a simple with: statement
2015-04-16 22:18:57 +02:00
Anders Ingemann
a11e466611
Generalize reading from socket
2015-04-16 22:18:57 +02:00
Anders Ingemann
c71a8230fe
Make tests/ a module, so that test scripts can import and run the tests manually
2015-04-16 22:18:57 +02:00
Anders Ingemann
27950af66e
Check runlevel in order to terminate reading from the console
2015-04-16 22:15:21 +02:00
Anders Ingemann
ed98ab30fd
Able to get console output from the machine now!
...
It's blocking though, so maybe there should be a check for "Entering runlevel: 2" or some shit...
2015-04-16 22:15:21 +02:00
Anders Ingemann
6a0bef147a
Refactor. Locking a vbox is now quite a bit easier
2015-04-16 22:15:21 +02:00
Anders Ingemann
6f23bcaafc
Add apt_proxy partial
2015-04-16 22:15:21 +02:00
Anders Ingemann
e8d6e7f602
factor AbstractPartition.Mount out into separate module and make it serializable
2015-04-16 22:15:20 +02:00
Anders Ingemann
ad52df37bd
Add partial for config of root password
2015-04-16 22:15:20 +02:00
Anders Ingemann
71e0d943fc
Make json and yaml files conflict instead of override
2015-04-16 22:15:20 +02:00
Anders Ingemann
e9137ac172
Make serialization a lot more easy to handle
2015-04-16 22:15:20 +02:00
Anders Ingemann
e2cddbca4c
Can now create and boot vbox image
2015-04-16 22:15:20 +02:00
Anders Ingemann
ea3eeae064
vbox instance creation working
2015-04-16 22:15:20 +02:00
Anders Ingemann
288c5f4c57
Always use tarball, minor fixes to test
2015-04-16 22:15:20 +02:00
Anders Ingemann
ece717a79f
Fix bugs when picking the build server
2015-04-16 22:15:19 +02:00
Anders Ingemann
cee05e3fd0
Refactor...
2015-04-16 22:15:19 +02:00
Anders Ingemann
3d38ce04ef
Move build_servers module into bootstrapvz
2015-04-16 22:15:19 +02:00
Anders Ingemann
909e5cee46
Put remote module into pkg root
2015-04-16 22:15:19 +02:00
Anders Ingemann
209651ef38
Dry run working in tests
2015-04-16 22:15:19 +02:00
Anders Ingemann
65b9e10ce3
VirtualBox integration
2015-04-16 22:15:19 +02:00
Anders Ingemann
86afbaf929
Clean up integration testing
2015-04-16 22:15:18 +02:00
Anders Ingemann
03a48b9407
Simplify loading of partial manifests
2015-04-16 22:15:18 +02:00
Anders Ingemann
6b693429f3
Remove old test code
2015-04-16 22:15:18 +02:00
Anders Ingemann
e271f3e49a
Initial work on integration testing started.
...
The work consists of three parts:
* Allow for bootstrapping remotely,
this makes it possible to run the tests
on e.g. OSX with VirtualBox installed
* Make bootstrapping a fully automated process
where the manifests can be generated by the tests
and the tests can call the bootstrapper directly in python
* Create a framework wherein instances can be booted up
using the bootstrapped images and subsequently tested
2015-04-16 22:15:17 +02:00
Anders Ingemann
e82bdf4a84
Rename integration tests to unit tests, since they really only cover small parts of the system.
2015-04-16 22:14:38 +02:00
Anders Ingemann
3e129b594b
Fix unit testing, don't try parsing README.rst as manifest
2015-04-12 11:15:27 +02:00
Anders Ingemann
0cc26d82d0
Allow passing data into the manifest.
...
This makes it possible to create dynamically created manifests
2014-07-09 23:17:05 +02:00
Anders Ingemann
0cbe057f5f
Increase test output delay to avoid bogus test fails
2014-05-10 17:50:05 +02:00
Anders Ingemann
6302d5d962
Fix log_call test to not give random outcomes.
...
We shouldn't play around with the carriage return char,
seems like using that together with readline gives undefined results (wrt ordering).
2014-05-04 15:01:45 +02:00
Anders Ingemann
f1994fab1e
Don't use Queue to gather log messages in log_call
...
... instead we just log the messages directly
2014-05-04 14:36:43 +02:00
Anders Ingemann
7e03dbe35d
Change order of expected output in log_call test
...
This will fail on OSX but work on Debian (no idea as to why, yet)
2014-05-04 09:34:26 +02:00
Anders Ingemann
00780844c7
Add a test for log_call.
...
Make log_call a little shorter as well, stream_readline() is now a closure.
2014-05-03 19:41:55 +02:00
Rory Finnegan
128bce8fff
Added manifest checking tests.
...
Overview:
1) fixed up .gitignore file to use absolute paths (to project dir).
2) updated tox to run both manifest tests and flake8
3) updated yml file cause NULL for aws credentials causes an error on validation.
4) actually added the tests under tests/integration
2014-04-30 17:21:32 -05:00