Alfonso Acosta
4f82dc97fd
[proxy] More flexible container name -> hostname derivation
...
Provides to new two new flags: `--hostname-match <regexp>`
and `--hostname-replacement <replacement>`. When launching a container, its name
matched against regular expression `<regexp>`. Then, based on that match,
`<replacement>` will be used to generate a hostname, which will ultimately be
handed over to weaveDNS for registration.
The substitution is implemented with
https://golang.org/pkg/regexp/#Regexp.ReplaceAllString . Thus, references to
regexp substitution groups should be prepended with a dollar sign.
For instance, if we provide `--hostname-match '^aws-[0-9]+-(.*)$'` and
`--hostname-replacement 'my-app-$1'`, running a container named
`aws-12798186823-foo` through WeaveProxy will lead to WeaveDNS registering
`my-app-foo`.
Closes #1018
2015-07-14 14:41:44 +00:00
Bryan Boreham
6d17fe5df5
Need to restart docker after systemd reconfigure
2015-07-14 12:12:35 +01:00
Bryan Boreham
907de67a40
Merge pull request #1125 from weaveworks/smoke-overlay
...
Upgrade smoke-tests to use 'overlay' storage and Ubuntu 15.04
2015-07-14 11:51:53 +01:00
Tom Wilkie
499d65e715
Build cover tool by default, and do go get -t for tests, irregardless of $SLOW
2015-07-14 10:50:34 +00:00
Bryan Boreham
4853a1da05
Tell Docker to use 'overlay' storage driver
2015-07-13 18:28:29 +01:00
Bryan Boreham
db8016112e
Upgrade to Ubuntu 15.04
2015-07-13 18:28:11 +01:00
Tom Wilkie
4eb6d147b5
Merge pull request #1121 from weaveworks/test_large_packets
...
test that large packets can be transmitted over weave
2015-07-13 17:06:28 +01:00
Tom Wilkie
1e39b2bdcf
Merge pull request #1123 from weaveworks/remove-danglies
...
Remove Docker dangling images in smoke-tests
2015-07-13 14:38:04 +01:00
Adam Harrison
d6443809bd
Merge pull request #1120 from weaveworks/998-race
...
Various improvements to unit test running
2015-07-13 14:09:45 +01:00
Bryan Boreham
80e56d67db
Remove Docker dangling images after copying new ones
2015-07-13 14:03:47 +01:00
Tom Wilkie
24a4d6501e
Merge pull request #1117 from weaveworks/multi_hop_tests
...
Multi hop tests
2015-07-13 11:39:06 +01:00
Bryan Boreham
5e43f0fd4c
Merge pull request #1079 from weaveworks/68-rewrite-etc-hosts
...
LGTM. Closes #68 , with remainder to #1122
2015-07-13 11:03:20 +01:00
Tom Wilkie
13f1239a3e
Various improvements to unit test running
...
- units.sh should exit on error.
- Add race detector to unit test runner.
- Use local testing/cover/cover tool in gen_coverage_report.sh and units.sh
- Use the scheduler to parallelise the unit tests.
- Make test run id a string and differentiate between unit runs and integration runs in the scheduler.
- Pipe circle env vars through to build container so we can detect when to use the scheduler
- Add python requests to the weave build container.
- Quote test names in urls, make flask handle url segments with slashes in.
2015-07-13 09:33:52 +00:00
Matthias Radestock
9463ceb873
test that large packets can be transmitted over weave
2015-07-13 10:31:20 +01:00
Matthias Radestock
57a4371e9f
attempt to cure spurious test failures
2015-07-11 16:31:16 +01:00
Matthias Radestock
1d2e6b4c56
test gossip forwarding
2015-07-11 16:17:36 +01:00
Matthias Radestock
2a0bc91f86
add test for peer discovery and multi-hop routing
2015-07-11 14:57:24 +01:00
Matthias Radestock
210b926064
increase number of test VMs from 2 to 3
2015-07-11 14:57:24 +01:00
Matthias Radestock
9a089a111f
don't invoke weave stop-router at end of tests
...
since that removes the container, rather than just stopping it.
2015-07-11 14:56:11 +01:00
Matthias Radestock
710eabeff3
reduce test vm memory
2015-07-11 12:15:46 +01:00
Matthias Radestock
603f34e944
oops, forgot to commit this
2015-07-11 12:14:43 +01:00
Matthias Radestock
a3dff7e1e9
cope with more than two test hosts
2015-07-11 11:59:34 +01:00
Matthias Radestock
25486f7b4d
cosmetic: s/weave_stop_router/stop_router_on
...
Also run `weave stop-router` as part of this, so conntrack cleanup
happens.
2015-07-11 11:58:29 +01:00
Matthias Radestock
a44a3a4158
cure "./gen_coverage_reports.sh: line 5: CIRCLECI: unbound variable"
2015-07-11 11:46:49 +01:00
Matthias Radestock
7042c1506a
cosmetic: consistency with other tests
2015-07-11 03:36:21 +01:00
Tom Wilkie
32b2ec4038
Run unit tests in circle and include their coverage in the report. Report coveralls.io from Circle.
2015-07-10 18:19:50 +00:00
Matthias Radestock
ce5052305d
fix CircleCI breakage
2015-07-10 18:44:30 +01:00
Matthias Radestock
0e94e3e07b
complain even less about absent weave container in coverage collection
2015-07-10 18:30:13 +01:00
Matthias Radestock
3d72670105
don't complain in coverage collection when weave container is absent
2015-07-10 18:24:19 +01:00
Tom Wilkie
f5186e74c0
Review feedback
2015-07-10 15:33:00 +00:00
Tom Wilkie
00a7490a1d
Code coverage for smoke tests.
...
Allow non-circle people to build coverage reports.
2015-07-10 14:45:14 +00:00
Paul Bellamy
e4458372e8
[proxy] weavewait rewrites /etc/hosts so weave ip is returned first from 'hostname -i'
...
Adds a --no-rewrite-hosts flag to the proxy, and be default, removes the
docker IP from hosts. We only discard the docker host when it exists, so
--net=none works.
2015-07-10 13:57:20 +01:00
Michael Bridgen
4ede33468e
Update docs and smoke-tests with new option names
2015-07-07 11:26:09 +01:00
Bryan Boreham
bd24307c2b
Merge pull request #1069 from 2opremio/fons/fix-tests-OSX
...
LGTM
2015-07-06 16:43:26 +01:00
Michael Bridgen
e0c7054f9b
Merge pull request #1075 from weaveworks/fons/test-vagrant-creation
...
Explain how to create the test VMs from vagrant
2015-07-06 16:31:22 +01:00
Alfonso Acosta
373d663b5e
Fix integration tests for OSX
2015-07-06 14:48:53 +01:00
Alfonso Acosta
e86d255a47
Add comment about running integration tests from the Vagrant build VM
2015-07-06 14:07:16 +01:00
Paul Bellamy
5c44f74475
rename proxy-(env|config) to (env|config)
...
Keep error message to stderr, as the proxy should be launched with
'weave launch'. 'proxy-(env|config)' are kept with a deprecation
warning, for a while.
2015-07-06 13:41:23 +01:00
Alfonso Acosta
cab4a7e1ee
Explain how to create the test VMs from vagrant
2015-07-05 18:59:53 +01:00
Bryan Boreham
ff2d7451e2
Remove -debug option, superceded by --log-level
2015-07-04 03:27:07 +01:00
Matthias Radestock
910b57731d
remove stray -debug in tests
2015-07-04 03:19:27 +01:00
Matthias Radestock
b8aa1d473b
remove dead code
2015-07-04 02:53:36 +01:00
Matthias Radestock
e25d1b8365
Merge branch '1.0'
2015-07-02 16:35:40 +01:00
Adam Harrison
d427c99161
Add smoke test
2015-07-02 14:29:38 +01:00
Matthias Radestock
2fee0f0184
Merge branch '1.0'
2015-07-01 14:02:57 +01:00
Bryan Boreham
a938608cc8
Call weave reset before deleting containers, to improve clean-down
2015-07-01 13:19:43 +01:00
Michael Bridgen
c0b2fe3e3b
Remove references to 'IPAM' in docs and UI
...
The option `--no-default-ipam` is replaced with
`--no-default-ipalloc`; the former will still work (in a 'last one
wins' way), but its usage message says it's deprecated.
2015-06-29 19:20:26 +01:00
Paul Bellamy
26cb65c357
making test helpers more robust so scope can use them
2015-06-29 10:22:10 +01:00
Paul Bellamy
1ef3bd3a8b
add docker version and weave version to test sanity checks
2015-06-29 10:20:55 +01:00
Matthias Radestock
51ecf05091
cosmetic: fix typo in comment
2015-06-27 09:35:14 +01:00