Anders Ingemann
7a1187c639
Simplify virtualbox test manifest composition
2015-04-20 16:25:35 +02:00
Anders Ingemann
f397ba5f08
Yeah... 94bd938 really wasn't very smart
...
Next time I should probably try to run tox after doing any kind of rename like this :-)
2015-04-16 22:22:49 +02:00
Anders Ingemann
a3fdeddd79
Rename virtualbox_tests.py to be less tautological
2015-04-16 22:21:46 +02:00
Anders Ingemann
f1bfee24a0
Prepare integration testing framework to work with providers other than virtualbox
...
Also, convert with context handlers in classes to functions with generators
This makes the code a lot more readable
2015-04-16 22:21:45 +02:00
Anders Ingemann
b70e24a848
Switch to using 3 partitions when testing gpt+msdos
...
Make boot partition a little bigger
2015-04-16 22:21:45 +02:00
Anders Ingemann
d105d10c76
raise proper Skip exception rather than the plugin class
2015-04-16 22:21:44 +02:00
Anders Ingemann
0f82fbd6af
Add some GPT tests
2015-04-16 22:21:44 +02:00
Anders Ingemann
44dcdec0ec
No need to skip jessie/extlinux tests any longer
2015-04-16 22:21:43 +02:00
Anders Ingemann
ce8dd02cbf
Fix dict merge conflict in test_unpartitioned_extlinux_unstable
2015-04-16 22:18:58 +02:00
Anders Ingemann
81060b2439
5ffbdc4 made no sense, apt_proxy was already a build setting
2015-04-16 22:18:57 +02:00
Anders Ingemann
943aab111f
Add some more tests
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
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
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
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
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
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