38 Commits

Author SHA1 Message Date
Peter Bourgon
90a0286909 Refactor tests to have appropriate packages
By default, tests should be in package pkg_test. If they need to test
package internals, they can be in package pkg, but then should carry a
suffix of foo_internal_test.go.

This changeset enforces that idiom across the codebase, and adds a check
to the linter to make sure it remains.

Also, some fixes to comments.
2015-06-29 18:06:44 +02:00
Tom Wilkie
bd4556f6c3 Add timeout on example client. 2015-06-24 11:07:35 +00:00
Tom Wilkie
5e4cfc57e5 Use a repo name on example images. 2015-06-24 10:34:20 +00:00
Tom Wilkie
49dae07cca Make render module produce The Internet pseudo node. 2015-06-19 11:09:52 +00:00
Tom Wilkie
f32d2b5a5e Remove report squash logic. 2015-06-18 17:20:20 +00:00
Tom Wilkie
75b5e07482 Add test for ContainerRenderer and make tests in /app pass. 2015-06-17 17:23:26 +00:00
Tom Wilkie
a759db8931 Rename Map -> LeafMap, introduce Map (with tests) 2015-06-17 17:23:19 +00:00
Tom Wilkie
2a4a33f30a Move RenderableNode and DetailedNode into render/ 2015-06-16 15:37:08 +00:00
Tom Wilkie
ae9ea5c97f Move mapping functions and main render function in render package. 2015-06-16 14:23:56 +00:00
Tom Wilkie
894439a449 Prevent multiple connections for the same app. 2015-06-11 10:02:54 +00:00
David Kaltschmidt
d9fbaf348c example report based on TNS tutorial for fixprobe
see
http://thenewstack.io/how-to-detect-map-and-monitor-docker-containers-with-weave-scope-from-weaveworks/
2015-06-10 15:44:11 +02:00
Tom Wilkie
e8eb24d65c Rejigger example app. 2015-06-10 10:41:17 +00:00
Tom Wilkie
719f933c21 Refactor MakeAdjacencyID & ParseAdjacencyID; add ParseNodeID (which separates scope and the rest of node id) 2015-06-10 09:21:45 +00:00
Peter Bourgon
aa0a754363 Improve test coverage; SquashRemote -> Squash
Also, remove some dead code.
2015-06-09 15:54:06 +02:00
Peter Bourgon
d438261742 HostMetadata becomes Host Topology
- All HostMetadata information becomes NodeMetadata
- Significant change to mechanics, but same net effect
- LocalNets becomes "local_networks", space-separated list of CIDRs
- Load becomes simple single string
- Use MakeHostNodeID for indexing into Host topology
- (That changes the app /origin/{id} handler; will be removed later)
2015-06-09 15:38:08 +02:00
Peter Bourgon
1e0b83eb6d Merge branch report-fields (#190) 2015-06-09 14:25:54 +02:00
Peter Bourgon
7c56939e22 Update IDList
- MakeIDList rather than NewIDList
- Iterate on test coverage
- Drop Copy method, for now
2015-06-08 19:52:26 +02:00
Peter Bourgon
4832ee76f3 Add the various ID constructors
- Use constructors instead of ScopeDelim everywhere
- Use constructors instead of IDDelim everywhere
- IDDelim is renamed EdgeDelim, for clarity
- Partial import of the new test fixtures, to be completed later
2015-06-08 17:53:01 +02:00
Tom Wilkie
ceb61d170d Add readme to experimental directory. 2015-06-05 16:21:56 +00:00
Tom Wilkie
03bdff8694 Add shout proxy to example app. 2015-06-05 14:56:56 +00:00
Peter Bourgon
754eac3152 Rename NewReport -> MakeReport. 2015-06-05 13:55:40 +00:00
Tom Wilkie
b031835148 Fixup experimental, add a makefile and add it to circle to stop experimental getting broken again. 2015-06-05 13:44:59 +00:00
Tom Wilkie
1fbc48f855 Remove sleep 1 from qotd server. 2015-05-28 09:41:51 +00:00
Tom Wilkie
f166cb6359 Scale up pyapp in example 2015-05-27 16:26:52 +00:00
Tom Wilkie
5065223f68 Use sessions for the pyapp -> goapp link too. 2015-05-27 16:06:04 +00:00
Tom Wilkie
649d6b9793 Python requests only does keep alive within a session... 2015-05-27 15:42:57 +00:00
Tom Wilkie
8bccec8a78 Replace curl with little python script 2015-05-27 14:51:37 +00:00
Tom Wilkie
8ca5fd6140 Add 'architecture' diagram to example add 2015-05-27 12:07:47 +00:00
Tom Wilkie
e8da5903f1 Small enhancements to the example app
- Explicity add go app to the example container, so it fails if you haven't built it.
- spin up 2 goapps and 3 elastic searches
2015-05-27 10:20:07 +00:00
Peter Bourgon
2f16729ef1 Fix errcheck errors in experimental 2015-05-26 16:54:23 +02:00
Peter Bourgon
2d5f58e8ed Expand details pane 2015-05-22 13:20:00 +02:00
Tom Wilkie
6b2bad2090 gofmt fixes 2015-05-19 10:42:52 +00:00
Peter Bourgon
2dc749bcdc README supports non-bash shells :) 2015-05-19 10:05:07 +00:00
Tom Wilkie
a49a6c86c1 An example micro-services based application for testing purposes. 2015-05-19 10:05:07 +00:00
Peter Bourgon
2ba9dab7bd integration: becomes experimental; remove support in bin/test 2015-05-19 10:05:05 +00:00
Peter Bourgon
5ad24319f2 Build instructions and fixes 2015-05-19 10:03:01 +00:00
Peter Bourgon
0e19360215 Redo import statements 2015-05-19 10:02:59 +00:00
Peter Bourgon
cab7c84ce4 move things to experimental, and rm more old things 2015-05-19 10:02:58 +00:00