Sven Dowideit
83e6696fd3
Improve and test install and upgrade robustness
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-01-30 14:48:43 +10:00
Sven Dowideit
a4e77692c4
My first pass at fixing the b2d autoformat
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-01-22 06:43:04 +00:00
Sven Dowideit
1c5d41a56e
Add a test for the non-tar b2d autoformat trigger
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-01-22 06:43:04 +00:00
Sven Dowideit
cf1ddf2ff8
If golang can't deal with dashes, then argh!
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-01-22 06:34:39 +00:00
Sven Dowideit
9670aa8505
Add an integration test for os-release
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-01-21 23:12:41 +10:00
Sven Dowideit
1761d770c9
make yN and reboot happen in the console container, not in the installer sub-container
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-01-17 22:13:35 +10:00
Sven Dowideit
4f1418d3ba
disable the old upgrade test - it can't work as things are
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-01-16 13:04:58 +10:00
Sven Dowideit
6bbed5fd4c
start testing the version number of our install/upgrade test
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-01-15 23:40:18 +00:00
Sven Dowideit
2a575837b2
Installing 0.7.1, and then rebooting, and doing a ros upgrade to a faked up latest works \o/
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-01-15 23:40:18 +00:00
Sven Dowideit
f5230f1299
add integration tests for iso boot, install and then boot from disk.
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-01-15 23:40:18 +00:00
Sven Dowideit
cc78ff7bd1
make the iso run also get the ssh and cloud-init so testing the installer is easier
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-01-15 23:40:16 +00:00
Sven Dowideit
087bc6fd2d
Convert install script to go
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-01-15 23:39:38 +00:00
Josh Curl
cc3c78663c
CLI validation for services, console, and engines
2016-12-05 10:18:31 -08:00
Josh Curl
40100ffa7c
Load modules after running PrepareFs
2016-12-01 11:27:33 -08:00
Josh Curl
584c4f4686
Add tests to ensure containers remain running after console switch
2016-11-29 14:46:41 -08:00
Sven Dowideit
0ac5a2d40b
Set rancher.environment.KERNEL_VERSION from /proc/version
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2016-11-29 23:09:07 +10:00
Sven Dowideit
540545ff74
fix the kernel-headers test for 0.8.0-rc1
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2016-11-24 16:13:09 +10:00
Darren Shepherd
4479ff5cdb
Merge pull request #1364 from joshwget/early-cloud-init
...
Early cloud-init
2016-11-16 17:05:03 -07:00
Josh Curl
13b34a6668
Early cloud-init
2016-11-09 11:08:30 -08:00
Josh Curl
c1abc67fa8
Support string values for runcmd
2016-11-07 11:36:37 -08:00
Josh Curl
2ae22a66fe
Always assert RunQemu is successful
2016-10-23 16:23:30 -07:00
Sven Dowideit
d7368a1a50
Merge pull request #1327 from joshwget/seperate-ssh-and-docker-checks
...
Seperate SSH check from Docker check in tests
2016-10-19 20:52:55 -07:00
Josh Curl
19d4be62c6
Seperate SSH check from Docker check in tests
2016-10-19 18:12:47 -07:00
Josh Curl
11d3bd69af
Merge pull request #1326 from joshwget/rewrite-scripts-in-go
...
Rewrite a few scripts in Go and remove unneeded services
2016-10-19 17:30:44 -07:00
Sven Dowideit
892b8d4bff
Merge pull request #1329 from sols1/fix-http-proxy-test
...
Removed "env" from "system-docker inspect docker env"
2016-10-19 03:45:57 +10:00
--get
6ce8226cf4
Removed "env" from "system-docker inspect docker env"
2016-10-17 17:28:40 -07:00
Josh Curl
a7d405991c
Rewrite a few scripts in Go and remove unneeded services
2016-10-17 14:47:44 -07:00
Darren Shepherd
e3df9911bc
Merge pull request #1313 from joshwget/bad-state-tests
...
Add tests for when state fails to mount
2016-10-14 11:37:25 -07:00
Josh Curl
e608377088
Write /run/console-done before executing /etc/rc.local
2016-10-14 10:48:32 -07:00
Josh Curl
a90d93691f
Add tests for when state fails to mount
2016-10-11 15:30:00 -07:00
Darren Shepherd
e5293ff926
Merge pull request #1239 from joshwget/docker-arguments-map
...
Use a map to configure Docker arguments
2016-09-26 21:36:36 -07:00
Josh Curl
b65e429bb6
Run gofmt and fix vet errors
2016-09-26 21:32:37 -07:00
Josh Curl
32b2ccda1e
Ignore error creating /var/lib/system-docker if it already exists
2016-09-25 20:37:55 -07:00
Josh Curl
065fe4a16e
Use a map to configure Docker arguments
2016-09-25 17:55:19 -07:00
Josh Curl
8777e477b8
Add upgrade tests
2016-09-12 21:48:26 -07:00
Josh Curl
d4a026dc5d
Execute start scripts using bash
2016-08-31 16:18:51 -07:00
Darren Shepherd
4bbfdadfde
Merge pull request #1170 from joshwget/runcmd
...
Implement runcmd
2016-08-22 13:50:21 -07:00
Josh Curl
4677af8419
Implement runcmd
2016-08-22 13:22:27 -07:00
Josh Curl
5eda685ff5
Fix image preloading
2016-08-21 22:51:01 -07:00
Josh Curl
11cf2a195b
Show current/enabled/disabled in 'ros engine list'
2016-08-17 16:33:49 -07:00
Darren Shepherd
6abdeb34d6
Merge pull request #1143 from joshwget/better-engine-switching
...
Make it easier to switch between Docker engines
2016-08-15 21:21:23 -07:00
Josh Curl
80c72d0761
Make it easier to switch between Docker engines
2016-08-15 15:06:26 -07:00
Josh Curl
d4801494a1
Use the mount command to apply cloud-config mounts
2016-08-15 13:01:40 -07:00
Josh Curl
0a053c62ab
Extend write_files to run in all system services
2016-08-15 11:14:50 -07:00
Josh Curl
889cb9eea8
Split cloud-init into cloud-init-execute and cloud-init-save
2016-08-04 15:47:12 -07:00
Josh Curl
1877cfa16b
Fix some tests
2016-07-26 15:40:35 -07:00
Josh Curl
0c7fb4f1f9
Refactor integration tests
2016-07-20 10:42:16 -07:00
Josh Curl
128c228ff5
Add swap support in cloud config mounts
2016-06-22 21:50:29 -07:00
Josh Curl
921c00c8ea
Add sysctl support in cloud config
2016-06-17 23:05:45 -07:00
Darren Shepherd
924e4b8aae
/media and /mnt mounted as shared for console
2016-06-15 16:45:05 -07:00
Josh Curl
f24facc06c
Additional mounts can be set in cloud config
2016-06-14 15:25:56 -07:00
Ivan Mikushin
a640bdb758
Fix installer build
2016-06-14 10:29:38 -07:00
Josh Curl
e4019385aa
Merge remote-tracking branch 'origin/v0.5' into HEAD
2016-06-13 22:00:34 -07:00
Josh Curl
a5273d922e
Revert "/media and /mnt mounted as shared for console"
2016-06-13 14:53:47 -07:00
Josh Curl
9f0074c398
/media and /mnt mounted as shared for console
2016-06-07 12:09:10 -07:00
Darren Shepherd
cd76d85aea
Merge pull request #980 from joshwget/first-class-consoles
...
First class consoles
2016-06-06 15:27:23 -07:00
Josh Curl
719d255636
First class consoles
2016-06-06 15:13:15 -07:00
Darren Shepherd
f22c692529
Merge pull request #975 from imikushin/tls
...
Disable docker server TLS cert auto-generation
2016-06-06 12:43:19 -07:00
Ivan Mikushin
41f333d0ff
Disable docker server TLS cert auto-generation
...
Because users should be explicit about their docker TLS certs.
Also, re-generate the key and cert files when `ros tls gen` is run (used to be cached).
2016-06-06 10:27:03 -07:00
Darren Shepherd
82666d779e
Fix tests
2016-06-06 10:17:21 -07:00
Josh Curl
55d629b980
Remove unneeded service processing code
2016-06-02 09:01:00 -07:00
Josh Curl
a59ec33787
Fix --private flag for 'ros config export'
2016-05-31 18:10:56 -07:00
Josh Curl
6ec9ce1bc6
Replace wait-for-network services with retries
2016-05-26 18:54:42 -07:00
Darren Shepherd
0d5223db23
Fix tests
2016-05-22 23:51:46 -07:00
Darren Shepherd
d34ead2fbf
Speed up build and run tests
2016-05-22 23:16:27 -07:00
Josh Curl
2968bed32e
Revert "/media and /mnt mounted as shared for console"
2016-05-07 15:08:39 -07:00
Darren Shepherd
a9ca80d47d
Merge pull request #917 from joshwget/proxy-settings
...
HTTP proxy settings can be set in cloud config
2016-05-07 12:56:52 -07:00
Josh Curl
ae543ab167
HTTP proxy settings can be set in cloud config
2016-05-06 16:25:07 -07:00
Josh Curl
7241390042
/media and /mnt mounted as shared for console
2016-05-04 16:18:24 -07:00
Darren Shepherd
a888a57cd9
Merge pull request #892 from datawolf/fix-test-to-work-with-multi-arch
...
Modify the test_11_environment to work with multiple architectures
2016-05-02 13:25:06 -07:00
Josh Curl
6ab32ae19c
Fix setting default values with 'ros config set'
2016-04-22 16:11:54 -07:00
Wang Long
4439cdde41
Modify the test_11_environment to work with multiple architectures
...
Signed-off-by: Wang Long <long.wanglong@huawei.com>
2016-04-19 11:36:41 +08:00
Josh Curl
8862878337
Remove DHCP override flag
2016-04-15 10:38:31 -07:00
Darren Shepherd
8b4e6cc502
Merge pull request #881 from joshwget/fix-dhcp-hostname
...
Fix DHCP hostname being overwritten
2016-04-14 21:59:38 -07:00
Josh Curl
a0ae6222c9
Fix DHCP hostname being overwritten
2016-04-14 21:58:07 -07:00
Darren Shepherd
f7cd87e2fb
Merge pull request #873 from joshwget/dns-integration-tests
...
Integration tests for DNS configuration in cloud config
2016-04-14 21:46:39 -07:00
Josh Curl
3c78335edf
Integration tests for DNS configuration in cloud config
2016-04-13 11:24:00 -07:00
Josh Curl
e31b955b0a
Fix environment variables set for system services
2016-04-12 22:59:37 -07:00
Josh Curl
173874f196
Apply network configurations again after cloud-init
2016-04-08 13:04:35 -07:00
Ivan Mikushin
0f6cf07786
make tests run on arm64
2016-04-01 16:18:27 -07:00
Ivan Mikushin
e2f3ac78a7
cleanup tests using SSH
2016-03-31 18:56:18 -07:00
Ivan Mikushin
95d24ac67d
Modify the tests to work with multiple architectures
2016-03-31 13:16:26 -07:00
Darren Shepherd
f7301fa1b0
Merge pull request #808 from datawolf/print-proper-tips
...
print proper tips when running `ros` or `system-docker` without using sudo
2016-03-21 21:05:01 -07:00
Ivan Mikushin
8802fe2c6e
Run qemu and tests on different architectures
2016-03-17 04:30:11 -07:00
Wang Long
445c510dee
fix the testcase: add sudo
to ros dev
command
...
Signed-off-by: Wang Long <long.wanglong@huawei.com>
2016-03-16 18:41:54 +08:00
Darren Shepherd
6f98e06d97
Fix ros config set for list values
2016-02-11 09:25:48 -07:00
Darren Shepherd
0d6c78ce28
Update networking
...
Add support for VLANs, bridging, and bonding.
2016-02-09 14:04:52 -07:00
Darren Shepherd
28bd8b0ccb
Fix ros dev panic
2016-02-04 09:25:36 -07:00
Darren Shepherd
ce915927be
Fix issue with depulicate ssh keys after save
...
The CloudConfig.Save() did not load the metadata resulting in the diff
function always thinking the SSH keys were new. This would cause them
to be saved over and over again just getting bigger and bigger.
2016-02-04 09:13:20 -07:00
Darren Shepherd
1a95080522
Support OEM partition and oem-config.yml
2015-12-22 17:03:50 -07:00
Darren Shepherd
cd2829d220
Farewell PID one
...
This change no longer runs Docker as PID 1. Instead PID 1 is a very
simple zombie reaper and Docker is moved as a child of that PID.
2015-12-22 15:38:32 -07:00
Darren Shepherd
808fbdbe1f
Use a subdirectory of the state partition
2015-12-22 15:16:22 -07:00
Ivan Mikushin
f4f59e97cc
Fix naming of external services (e.g. specified by rancher.services_include)
...
Add container_name key to service configuration.
2015-12-21 11:49:43 +05:00
Ivan Mikushin
99bec55a2f
Use drone-0.4 for CI and migrate build to dapper
2015-12-18 19:24:24 +05:00
Ivan Mikushin
ac3d7afca6
Integration tests: make sure qemu exits in fixture finalizer
...
Also, make sure qemu is alive in wait_for_ssh.
2015-12-17 14:59:52 +05:00
Ivan Mikushin
084fb43201
tweak tests
2015-12-11 17:38:00 +05:00
Ivan Mikushin
fde9d035b0
test docker --tlsverify
2015-12-11 13:41:19 +05:00
Ivan Mikushin
2c89796274
integration tests: log while we are waiting for ssh and docker
2015-12-02 17:24:35 +05:00
Ivan Mikushin
b10a093c62
test dhcpcd running in background after network has initialized
2015-11-18 14:50:56 +05:00
Ivan Mikushin
3395ede89d
rename tests package to rostest
2015-11-18 14:37:38 +05:00