Alvaro Saurin
8a935e3cb2
Launch WeaveDNS with "launch_dns_on"
2015-06-16 15:29:36 +02:00
Alvaro Saurin
8621aa7cbf
Launch WeaveDNS with --debug when DEBUG is set
2015-06-16 14:58:53 +02:00
Matthias Radestock
ee61f07d9b
refactor: extract rm_containers helper
...
cherry-picked from #898
2015-06-15 21:41:43 +01:00
Matthias Radestock
bd364f787e
fix silent failure in assert_dns_record test
...
If the name cannot be resolved, getent fails, which in turn causes
assert_dns_record to just return with a non-zero status at that point,
which causes the whole test to just terminate with a non-zero status,
but no indication whatsoever what had gone wrong.
2015-06-09 19:08:59 +01:00
Matthias Radestock
fca02eb489
Merge pull request #706 from awh/dns_delete_individual_records
...
delete individual dns records
Closes #631 . Closes #654 .
2015-06-02 12:35:50 +01:00
Matthias Radestock
cc1a5548af
reduce smoke test noise
2015-06-02 11:57:49 +01:00
Matthias Radestock
a8b8a0948f
cosmetic(ish): banish double bracket bashism
2015-06-02 11:56:27 +01:00
Adam Harrison
66de361fd6
Smoketest dns-remove -h
2015-06-02 09:57:28 +01:00
Matthias Radestock
ccd7153b9d
refactor: remove excessive escaping
2015-05-28 12:29:58 +01:00
Alvaro Saurin
0a803c61ff
Smoke tests
2015-05-28 10:05:22 +02:00
Paul Bellamy
11931f3ea2
[tests] extract gliderlabs/alpine and aanand/docker-dnsutils into var in
...
config.sh
@bboreham made me do it.
2015-05-22 15:52:36 +01:00
Paul Bellamy
73071f2c62
cleanup proxy test helpers
2015-05-22 10:04:09 +01:00
Paul Bellamy
46bdd8c67d
Proxy support for IPAM
...
Pass `-e WEAVE_CIDR=` to your container to use IPAM. If IPAM is not
enabled on the weave router, the container will be booted without weave
networking.
I'm not crazy about adding *another* undocumented weave cli command
(ipam-cidr), but it saves the proxy messing around finding container
IPs.
2015-05-21 15:37:37 +01:00
Paul Bellamy
eeaa6c9e2c
use grep in /sys to verify ethwe is up in tests
...
Closes #707 . `ip link show` seems to "lag" the real state. In tests
checking the physical link state is good enough.
2015-05-20 13:36:36 +01:00
Paul Bellamy
e6b587ea8d
proxy needs to add weavewait to execs as well
...
Bug came up in a test where we are restarting and doing an exec checking
a network interface right away. weavewait is only added if the container
has a WEAVE_CIDR var set, the same as at container creation.
2015-05-19 17:36:53 +01:00
Paul Bellamy
5a6a67f632
Add integration test for the proxy, using docker-py client
2015-05-19 10:34:45 +01:00
Matthias Radestock
c08bfd2205
always quote $@
2015-05-18 11:16:12 +01:00
Matthias Radestock
6dd6d9d6f0
one ping to rule them all
2015-05-16 21:53:50 +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
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
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
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
Alvaro Saurin
ba98135e03
Return NOTIMP for some unimplemented query types, NXDOMAIN otherwise
2015-05-05 21:31:11 +02: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
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
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
rade
8e65c7127d
Merge pull request #388 from squaremo/remote_weaving
...
Move weave script into tools image with its deps
and thus enable weaving on a remote docker
Closes #312 .
2015-03-20 15:17:09 +00:00
Matthias Radestock
9bd695a816
restore workingness of smoketests sans vagrant
...
Fixes #456 .
2015-03-19 17:23:29 +00:00
Michael Bridgen
9fd468d743
Use weave remotely in smoke tests instead of via SSH
2015-03-19 10:15:06 +00:00
Matthias Radestock
5967d5de20
make it easier to set up more than 2 VMs for testing
2015-01-31 16:55:45 +00:00
Ilya Dmitrichenko
00832dcbb5
Ignore ssh know hosts for test vms
2014-12-30 16:28:03 +00:00
Matthias Radestock
d54cc53864
install docker-ns in test VMs
...
handy for debugging
2014-12-23 12:14:33 +00:00
Michael Bridgen
5b5d1e615d
Smoke tests
...
cd test
cat README.md
./setup.sh
./run_all.sh
2014-12-04 17:20:58 +00:00