Alvaro Saurin
0a803c61ff
Smoke tests
2015-05-28 10:05:22 +02:00
Alvaro Saurin
b8d4068a26
Force 8.8.8.8 as the DNS server in VirtualBoxes
2015-05-28 10:05:22 +02:00
Alvaro Saurin
6d2317d60e
Silence "golint" errors
...
Silence "go vet" errors
Run goimports
2015-05-28 10:05:22 +02:00
Alvaro Saurin
40d7b2a87d
Dump the zone database status on "weave status"
...
Fix the smoke test by updating the regexps used for parsing "weave status" output
2015-05-28 09:12:53 +02:00
Alvaro Saurin
32627eccbf
Fix the timeout for the fallback server client connection
2015-05-28 09:12:53 +02:00
Alvaro Saurin
6f7e385c74
Unit tests for multiple IPs through the HTTP API
2015-05-27 14:54:30 +02:00
Alvaro Saurin
954c5cb394
Limit the number of answers we provide to users.
2015-05-27 14:54:29 +02:00
Alvaro Saurin
2d919d0a5f
Remove duplicates in answers
2015-05-26 21:27:53 +02:00
Alvaro Saurin
c4b07fd44e
Shuffle all the replies, not only the ones from the cache...
2015-05-26 21:24:28 +02:00
Alvaro Saurin
b87b942363
Check we can use our mDNS client with our mDNS server
2015-05-26 21:24:26 +02:00
Alvaro Saurin
5fe0a7fbb2
Make Stop() idempotent
2015-05-26 21:20:44 +02:00
Alvaro Saurin
a159ac44d9
Unit tests for cache invalidations as a result of names updates
2015-05-26 21:20:44 +02:00
Alvaro Saurin
836d012459
Command line arg for changing the number of background updaters
...
Default number of background updaters raised to 4
2015-05-26 21:20:44 +02:00
Alvaro Saurin
07d15092aa
Do not invoke the mDNS lookups from the server: they are used from the Zone database now...
...
Improved DNS server:
- simplify the handlers code, removing duplicated code
- more configuration parameters (eg, we can now disable the cache)
- we can now bind to port 0 and let the server get a free port (so we can get rid of the mess we had in the unit tests...)
2015-05-26 21:20:42 +02:00
Alvaro Saurin
a23462e830
Command line option for disabling the cache
2015-05-26 21:17:24 +02:00
Alvaro Saurin
6fc6afa6a7
Unit tests for the zone lookups and names updates
2015-05-26 21:17:24 +02:00
Alvaro Saurin
64090d0b95
Improved mocks
2015-05-26 21:17:24 +02:00
Alvaro Saurin
dbce56ed30
Background updates for names
2015-05-26 21:17:21 +02:00
Alvaro Saurin
ea808bd08b
Domain lookups, using mDNS
...
Added DomainLookup* to the Zone interface
2015-05-26 21:14:09 +02:00
Alvaro Saurin
da2d66a6df
New zone database
2015-05-26 21:14:06 +02:00
Alvaro Saurin
c1d124df4c
Interfaces for the mDNS client and server
2015-05-26 21:11:34 +02:00
Matthias Radestock
6197f98c26
reword proxy intro a bit
2015-05-24 16:27:34 +01:00
Matthias Radestock
213208bf12
Merge branch 'bboreham-723-check-bridge'
...
Fixes #723 .
2015-05-24 11:30:47 +01:00
Matthias Radestock
5148ed7936
symmetry with create_bridge
2015-05-24 11:30:04 +01:00
Matthias Radestock
add68afe0a
simplify
2015-05-24 11:29:47 +01:00
Matthias Radestock
ec59d5abee
Merge branch '723-check-bridge' of https://github.com/bboreham/weave into bboreham-723-check-bridge
2015-05-24 11:20:43 +01:00
Matthias Radestock
a7fccf053f
Merge pull request #719 from bboreham/705-hide-404
...
Don't talk to IPAM unless 0 addresses supplied to 'hide'
Fixes #705 .
2015-05-24 11:15:00 +01:00
Matthias Radestock
b1af1f752d
refactor: extract a helper
2015-05-23 12:28:43 +01:00
Matthias Radestock
01bc994822
refactor: extract image creation
2015-05-23 12:14:58 +01:00
Matthias Radestock
2b8a1fe177
rename
2015-05-23 11:59:47 +01:00
Matthias Radestock
1c4beb5ef0
improve entrypoint/command selection tests
2015-05-23 11:58:00 +01:00
Matthias Radestock
b42b045c08
cosmetic: vertical alignment
2015-05-23 10:30:45 +01:00
Matthias Radestock
c904a650b6
cosmetic: reflow
2015-05-23 10:27:38 +01:00
Matthias Radestock
0612f27f1f
fix typo
2015-05-23 10:27:07 +01:00
Matthias Radestock
5387eb77ab
Merge pull request #721 from paulbellamy/proxy-ipam
...
Proxy support for IPAM
Closes #657 .
2015-05-23 10:24:53 +01:00
Matthias Radestock
0c01bb758e
Merge pull request #722 from errordeveloper/docs-branch-heads
...
Create `weave/<branch>/head` for latest branch docs
Closes #668 .
2015-05-22 18:48:14 +01: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
cc82213147
add 'weave launch-proxy --with-ipam' flag
2015-05-22 15:52:36 +01:00
Matthias Radestock
f36af211c0
cosmetic
2015-05-22 15:41:29 +01:00
Matthias Radestock
b20b4a8675
Merge pull request #731 from dpw/connection-select-break
...
Fix use of "break" within "select" in LocalConnection actorLoop
2015-05-22 15:40:00 +01:00
David Wragg
dfa93436c2
Fix use of "break" within "select" in LocalConnection actorLoop
...
From the golang spec: 'A "break" statement terminates execution of the
innermost "for", "switch", or "select" statement within the same
function.' But the LocalConnection actorLoop seems to assume it
skips the "select" and terminates the enclosing "for".
As a result, if something did conn.Shutdown(nil), it would not actually
shutdown the connection. It turns out this is never a problem, because
Shutdown is always called with a non-nil error, even though there is code
in a few places to handle the nil case. By cleaning that up, the dubious
"break" is eliminated.
2015-05-22 11:26:30 +01:00
Paul Bellamy
d0320b43f9
realigning the weave help output columns
2015-05-22 10:04:10 +01:00
Paul Bellamy
73071f2c62
cleanup proxy test helpers
2015-05-22 10:04:09 +01:00
Paul Bellamy
c9409c5342
[proxy] Adding basic docs about IPAM integration
2015-05-21 15:37:37 +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
Bryan Boreham
22b8f482ea
Fix a couple of mistakes in get_ipam_cidr calls
...
(first one only caused a slight slow-down; second one only mattered if
your 'weave' container had a non-standard name)
2015-05-21 12:05:48 +01:00
Adam Harrison
387ec3fdd5
Add run-smoketests target to Makefile
2015-05-21 11:40:12 +01:00
Tom Wilkie
449bf45c2b
Try and ignore pull request pseudo-branches for circle build.
2015-05-21 09:50:38 +00:00
Bryan Boreham
b771528942
Check if Docker using weave bridge before inserting DROP rule
...
and comment the use of -I
2015-05-21 10:14:15 +01:00
Bryan Boreham
f727e56bad
Revert "consistency"
...
This reverts commit c5d5dd5fdc .
2015-05-21 09:54:46 +01:00