Marc CARRE
17ada094f8
Updated and improved testing documentation.
2017-02-08 14:15:59 +00:00
Marc CARRE
3e5593dc4f
Add GCP image creation and usage.
...
Provisioning and configuration being expensive time-wise, we create Google Cloud Platform images for each Docker/Kubernetes/Kubernetes CNI versions triple, and configure these once (instead of for each build), and then re-use these in subsequent builds, effectively implementing a 'cache' of images.
2017-02-08 14:15:59 +00:00
Marc CARRE
e647fe6331
Highlight setup and sanity checks in CircleCI's logs.
2017-02-08 14:15:59 +00:00
Marc CARRE
30f59953d2
Smoke tests are now run using Terraform, Ansible and run-integration-tests.sh.
2017-02-08 14:15:59 +00:00
Marc CARRE
acd16881d9
Add make integration-tests based on Terraform/Ansible.
2017-02-08 14:15:59 +00:00
Marc CARRE
487ebfb514
Increased timeout for test #840 .
...
Reason: test is periodically failing because of the timeout being too aggressive, especially when using Google Cloud Platform together with Terraform and Ansible.
2017-02-08 14:15:02 +00:00
Marc CARRE
fde7e88e66
Allow RUNNER_ARGS to be passed by calling script.
...
This is required in order to be able to dependency-inject values from layers higher up, e.g.: RUNNER_ARGS="-parallel" from the Makefile.
2017-02-08 14:15:02 +00:00
Bryan Boreham
4eeb846507
Add tests for connectivity to the world
2017-02-01 15:01:18 +00:00
Bryan Boreham
7529f5f9af
Raise ping timeout to reduce false negatives
2017-02-01 15:01:18 +00:00
Martynas Pumputis
07892bff7d
Reduce the default MTU
2017-01-31 17:21:01 +00:00
Martynas Pumputis
60323d0960
Add fastdp crypto
2017-01-31 17:21:01 +00:00
Marc CARRE
5fd14348aa
Fix broken link to 'Building Weave Net' documentation.
2017-01-17 17:49:17 +00:00
Bryan Boreham
e7eeecd762
Smoke test for peer names
2017-01-11 13:14:35 +00:00
Bryan Boreham
e370443a3f
Merge pull request #2699 from weaveworks/2647-parallelise-sanity-checks
...
Parallelise sanity checks in order to speed them up.
2017-01-09 12:57:44 +00:00
Bryan Boreham
cef8c908d0
Merge pull request #2704 from weaveworks/2647-parallelise-setup
...
Parallelise setup.sh's individual tasks.
2017-01-09 12:30:53 +00:00
Marc CARRE
89e116961c
Now measure time spent in setup.
2017-01-09 12:03:13 +00:00
Marc CARRE
71180f97e7
Parallelise setup.sh.
2017-01-09 12:03:09 +00:00
Adam Harrison
be8d9d88d8
Merge pull request #2724 from weaveworks/2647-remove-dependency-on-jq
...
Removed dependency on jq in test #175 .
2017-01-09 10:59:52 +00:00
Marc CARRE
4a7e2054db
Removed dependency on jq in test #175 .
...
If the machine coordinating the test runs does not have jq, then test #175 fails with:
> test #1 "weave_on test-0.lon1.weave-net report | jq -r '.Router.Targets[] | tostring' | sort" failed:
> expected "test-1.lon1.weave-net
> test-2.lon1.weave-net"
> got nothing
This change completely removes the dependency on jq to make the test more robust and avoid potential confusion.
2017-01-09 10:16:05 +00:00
Marc CARRE
fe75047988
weave-daemonset.yaml is now referred to using relative paths.
2017-01-09 10:08:38 +00:00
Marc CARRE
f73fb5307f
Redirect sanity checks' output to temporary files (and archive them as artifact files under CircleCLI).
...
This should make it easier to find and access relevant debugging information without polluting STDOUT and without any risk of log interleaving. See also:
- https://weaveworks.slack.com/archives/net/p1482154505001192
- https://weaveworks.slack.com/archives/net/p1482254780001493
2017-01-09 09:17:45 +00:00
Marc CARRE
172597a68d
Now measure time spent in sanity checks.
2017-01-09 09:17:45 +00:00
Marc CARRE
f05169e457
Initialise pids before using it, to avoid potential issues with previously set values.
2017-01-09 09:17:45 +00:00
Marc CARRE
b171497466
Ensure sanity checks exit early in case of a ping failure.
2017-01-09 09:17:45 +00:00
Marc CARRE
61375fb785
Format ping output as one line.
2017-01-09 09:17:45 +00:00
Marc CARRE
04cc4edf26
Parallelise sanity checks in order to speed them up.
2017-01-09 09:17:45 +00:00
Marc CARRE
0101a12fba
Undo 0dff07dc8b since current directory is already changed on previous line.
2017-01-09 09:16:53 +00:00
Marc CARRE
e094fb1547
DOCKER_CERT_PATH is now set using a relative path.
2017-01-09 09:16:53 +00:00
Marc CARRE
e0a44a901a
Tests now source dependencies using relative paths (previously breaking make depending on current directory).
2017-01-09 09:16:53 +00:00
Marc CARRE
d4f9abeefd
Finding tests no longer depends on current directory.
2017-01-09 09:16:53 +00:00
Marc CARRE
6f24cca4b1
Fix ordering bug in test #150 .
...
Test hard-codes a string containing '\n' and then expects echo
to interpret it as a newline, which it does not without the -e option.
This fixes flaky test runs like the below:
>>> Running /root/src/github.com/weaveworks/weave/test/150_connect_forget_2_test.sh on [138.68.153.213 138.68.149.186]
>>> Test /root/src/github.com/weaveworks/weave/test/150_connect_forget_2_test.sh finished after 12.4 secs with error: exit status 1
test #5 "direct_peers 138.68.149.186 | sort" failed:
expected "138.68.153.213\n138.68.149.186"
got "138.68.149.186\n138.68.153.213"
2017-01-05 15:02:16 +00:00
Marc CARRE
8bb72aa175
Fixed typo in sanity check of weave's version (previously checking locally, now checking test host).
2016-12-21 10:03:05 +00:00
Marc CARRE
0dff07dc8b
Scripts now source dependencies using relative paths (previously breaking make depending on current directory).
2016-12-13 16:00:37 +00:00
Martynas Pumputis
52f375ac1e
Merge pull request #2663 from weaveworks/issues/2389-report-mtu
...
Add MTU to connection status
Fixes #2389
2016-12-13 11:53:39 +00:00
Bryan Boreham
9c2bc0b825
Add MTU to connection status
2016-12-09 13:59:49 +00:00
Bryan Boreham
bb1cca713d
Merge branch '1.8'
2016-12-08 12:27:40 +00:00
Martynas Pumputis
baa8f229f7
Detect enabling of hairpin mode on vethwe-bridge
...
Enabled hairpin mode on vethwe-bridge was one of the root causes
for installing looping flows in the fastdp mode.
Also, it confused the weave custom L2 bridge, as the bridge treats
a bounced back packet, e.g. ARP brodcast request, as a local one
(the case for "Captured a packet associated with remote host").
2016-12-08 11:37:52 +00:00
Bryan Boreham
ec21afb426
Unify weave and launch.sh CNI setup
...
Test 830 has to run CNI plugin under sudo now
2016-12-06 11:52:09 +00:00
Bryan Boreham
882bff292e
Fix test invocation of weave again
...
Previous fix in b4a43f1b85 did not work
when built with code coverage.
Running a test script with -v causes `weave_on` to output progress
messages, so we don't want to use those commands inside `$()`
2016-12-06 11:48:48 +00:00
Bryan Boreham
b4a43f1b85
Fix test running with -v flag
...
Running a test script with -v causes `weave_on` and `docker_on` to
output progress messages, so we don't want to use those commands
inside `$()`
2016-12-05 16:12:15 +00:00
Adam Harrison
bc529c5d09
Merge branch '1.8'
...
Fixes #2667 .
2016-11-25 13:10:29 +00:00
Bryan Boreham
fd34dda6c1
Run test instances on a locked-down network
...
and open up a rule from the specific IP running the tests
2016-11-24 17:17:12 +00:00
Bryan Boreham
ad43acf843
Merge branch '1.8'
2016-11-24 10:53:59 +00:00
Adam Harrison
fa15193011
Wait up to 30s for version check error in logs
2016-11-23 10:53:42 +00:00
Bryan Boreham
dff14c19f8
Don't remove base CNI plugins in test
2016-11-23 10:38:23 +00:00
Adam Harrison
c3a2539445
Merge branch '1.8'
2016-11-22 16:17:30 +00:00
Bryan Boreham
cbec624cd8
Remove CNI files when tearing down Kubernetes
2016-11-21 16:08:50 +00:00
Bryan Boreham
e9eeaee520
Warn user on unknown gce util command
2016-11-21 09:49:41 +00:00
Bryan Boreham
d5ec9fb38d
Fix test 700 to use resolver override
...
instead of /etc/hosts override that didn't work in netgo mode
2016-11-18 20:42:15 +00:00
Bryan Boreham
9cc98919fa
Adjust CNI smoke-test to cope with new plugin behaviour
2016-11-14 19:53:54 +00:00