Matthias Radestock
ccd468f80c
drop -debug from launch-dns
...
It wasn't being applied consistently in any case.
2015-05-16 21:06:08 +01:00
Matthias Radestock
4e7ddedf75
extract startup of container with dns
...
There is now just one mention of the aanand/docker-dnsutils image; in
config.sh.
2015-05-16 21:00:27 +01:00
Matthias Radestock
8261c7f782
extract hostname as a constant
2015-05-16 21:00:27 +01:00
Matthias Radestock
c3c5b76007
use already-defined constants
2015-05-16 21:00:27 +01:00
Matthias Radestock
1c1bd817e1
extract startup of simple container
...
There is now just one mention of the gliderlabs/alpine image outside config.sh.
2015-05-16 21:00:07 +01:00
Matthias Radestock
ab244f76f6
consistency
2015-05-16 20:37:16 +01:00
Matthias Radestock
535a6ae199
consistent docker run parameter order
2015-05-16 20:37:16 +01:00
Matthias Radestock
822cab7750
use assert_dns_record in ipam test
...
instead of homegrown version that uses dig
2015-05-16 19:22:31 +01:00
Matthias Radestock
2647fd4c92
extract helper for obtaining container ip address
...
thus keeping the ghastly regexp in one place instead of three.
2015-05-16 19:14:23 +01:00
Matthias Radestock
bb8a745431
cosmetic: helper functions come first
2015-05-16 19:05:19 +01:00
Matthias Radestock
352e31c88b
remove all the weave_on hacks
...
that existed because it was echoing a message to stdout, which it no
longer does.
As a result there is now no mention of the docker tcp host/port
outside config.sh.
2015-05-16 19:00:35 +01:00
Matthias Radestock
a94d2ef277
remove pointless quoting
2015-05-16 18:22:55 +01:00
Matthias Radestock
ad34a56e56
simplify NXDOMAIN test
...
- remove premature abstraction
- only do one check
2015-05-16 18:22:55 +01:00
Matthias Radestock
970af56765
less noise, and use lower-case var names
2015-05-16 18:22:02 +01:00
Paul Bellamy
defcfa5d26
test *_on helpers should send non-result output to &2, so that asserts work
...
Previously, the result output would include:
Docker on: <command>
result output text
etc...
But this would cause: assert "docker_on ..." to fail
2015-05-16 18:03:21 +01:00
Matthias Radestock
2bd197e12c
cosmetic
2015-05-16 01:31:47 +01:00
David Wragg
977666c2c9
Fix test when run on circleci
...
'docker exec -i' hangs there.
2015-05-15 15:48:55 +01:00
Bryan Boreham
3cd1a17c23
IP Allocation Management
...
Using the Ring CRDT and Weave gossip, provides an interface
for the weave script to allocate IP addresses in `weave run`,
`weave start` and `weave expose`.
See docs/ipam.md for implementation details, and site/features.md
for user-visible changes.
2015-05-14 17:44:06 +01:00
Matthias Radestock
79d3a2821f
simplify test
...
less clever, but more readable
2015-05-14 14:52:35 +01:00
Tom Wilkie
28a2c0d8a9
Parallelise integration tests.
2015-05-07 19:03:59 +00:00
Tom Wilkie
8d1b161d4f
Use circleci build number instead of git hash, as we can have multiple builds for a given hash.
2015-05-07 18:33:02 +00:00
Tom Wilkie
5094e84af3
Use gliderlabs/alpine over ubuntu in attempt to speed up tests.
2015-05-07 17:40:44 +00:00
Tom Wilkie
a5750dda2a
Tidy up try_connect function
2015-05-07 17:15:14 +00:00
Tom Wilkie
f9c43fecf4
Wait for VMs to come up before connecting
2015-05-07 17:00:36 +00:00
Tom Wilkie
5ed8ad46ee
Don't need gsutil on circle; use a prebuild weave-build image and cache it locally.
2015-05-07 16:23:08 +00:00
rade
5e5e932584
Merge pull request #627 from grkvlt/feature/add-dns-entry
...
add `weave dns-add/remove` commands
Closes #364 .
2015-05-07 13:05:45 +01:00
Tom Wilkie
26b6b743f5
Use a template with everything installed for GCE tests.
2015-05-07 11:15:13 +00:00
Andrew Kennedy
633d539b60
New commands to add and remove DNS entries
...
- Commands dns-add and dns-remove added to weave script
- Updated documentation for WeaveDNS
- Added test script for dns-add and dns-remove
- Added IP address functions matching existing CIDR ones
2015-05-07 12:13:59 +01:00
Tom Wilkie
432662bc86
Create multiple GCE VMs at a time.
2015-05-07 10:20:26 +00:00
Matthias Radestock
2028861a58
refactor
...
0 is the default
2015-05-06 22:13:02 +01:00
rade
efd704c798
Merge pull request #589 from inercia/weave-588
...
return NXDOMAIN instead of NOTIMP
Fixes #588 .
2015-05-06 19:50:51 +01:00
Tom Wilkie
9f75e4eba5
Merge pull request #624 from weaveworks/circle
...
Spin up test VMs on GCE during a circle ci run and use them to run the integration tests.
2015-05-06 15:28:26 +01:00
Tom Wilkie
e5ae053b4f
Spin up test VMs on GCE during a circle ci run and use them to run the integration tests.
2015-05-06 14:01:41 +00:00
Alvaro Saurin
ba98135e03
Return NOTIMP for some unimplemented query types, NXDOMAIN otherwise
2015-05-05 21:31:11 +02:00
Matthias Radestock
12ce7d4c18
add some tests of weave expose/hide functionality
2015-05-05 16:00:37 +01:00
Adam Harrison
19fce2aa8c
Only output colour escapes when attached to a tty
2015-04-28 11:35:08 +01:00
Adam Harrison
d0d8144ef9
Factor out test fixture teardown
2015-04-24 12:03:57 +01:00
Matthias Radestock
edf92ef958
add tests for resolving unqualified names
2015-04-23 15:21:26 +01:00
Matthias Radestock
22c04bfc24
don't use $(exec_on ...)
...
since that will cause the test to exit on failure
2015-04-22 20:09:34 +01:00
Matthias Radestock
eebb674232
simplify dns tests
...
- use 'host' to lookup MX record. It's shorter
- use getent everywhere else for dns lookups, instead of dig; this
tests more of the o/s name resolution machinery and is generally
shorter.
- introduce assert_dns_record helper that performs forward and reverse
- lookup introduce some vars for holding constants, so we don't have
to repeat them
2015-04-22 19:38:04 +01:00
Adam Harrison
6a06d0f95f
Simplify ping tests to avoid set -e precipitated exit in failure case
2015-04-22 16:46:35 +01:00
Adam Harrison
d850ea41a2
Report overall status after running all suites
2015-04-22 16:46:22 +01:00
Adam Harrison
5e01021cba
Avoid use of subshell in whitely/greyly
2015-04-22 16:43:38 +01:00
Adam Harrison
f3619367a2
Make sourcing of config.sh idempotent
2015-04-22 14:54:33 +01:00
Matthias Radestock
a7c9fd272c
add exec_on helper
...
so we don't repeat the remote docker invocation command (complete with
hard-coded port) over and over again.
2015-04-22 09:25:42 +01:00
Adam Harrison
8326768b9f
Upgrade Vagrantfiles to Ubuntu 14.10
2015-04-21 17:28:17 +01:00
Alvaro Saurin
d49a3fe5ca
Fixed wrong argument
2015-04-21 12:26:06 +02:00
Adam Harrison
32372fce8c
Add Vagrantfile.local hook to smoke test Vagrantfile
2015-04-20 16:13:30 +01:00
Adam Harrison
f3ab25a512
Remove unnecessary -i flag from docker exec invocations.
...
Fixes #579 .
2015-04-20 14:35:18 +01:00
Adam Harrison
2332bc9a94
Require minimum Vagrant version (1.7.0) in smoke tests
2015-04-17 11:07:53 +01:00