[e2e]: Add external E2E tests#298
Conversation
|
Currently, the old fallback tests fail and there is a permission issue with Travis. Will migrate the fallback tests at the end after we have tests for all the types. |
stp-ip
left a comment
There was a problem hiding this comment.
Overall great. Still missing a few tests as you mentioned, but feels much better separated and we have the ability to go much more e2e with this.
Valid choice to go with more code duplication, but better separation between tests.
What's your stance on newlines? I would generally say a newline for all files should be done. We are not doing it for dockerfiles, zonefiles, corefiles etc.
Awesome URL structure for the test redirects. Readable and understandable for both the request URL and the response one.
Will take a look into the Travis permission failures now.
| @ 86400 IN NS ns.example.net. | ||
| @ 86400 IN NS ns.example.nl. | ||
|
|
||
| $TTL 1H |
e2e/host/main.go
Outdated
| host: "noto.host.host.example.com", | ||
| path: "/", | ||
| }, | ||
| expected: "http://noto.host.host.example.com/", |
There was a problem hiding this comment.
As I mentioned in my first comment, we should reconsider this test (it was in our old e2e tests) and return an error and trigger the fallback when to= is empty.
There was a problem hiding this comment.
Shouldn't this be 404 in general with no other fallback configured?
There was a problem hiding this comment.
Line 192 in 97a881d
I thought this would take care of it but it only gets called when
to= exist. Will add a condition to trigger fallback when the type is host and to= doesn't exist.
|
Additional notes: github.com/docker/docker should be replaced with github.com/docker/engine within go.mod as far as I can see. Currently it works as we are using @master for the version instead of a tagged release, which would not be available within github.com/docker/docker. make docker-build should use Mounting the pkg directory as we do in our other docker run usage would speed up the tests. ContainerCreate doesn't pull any container images. So it assumes that |
DeepCode Report (#ec80f2)DeepCode analyzed this pull request. |
632acf9 to
2452285
Compare
834777f to
0c84883
Compare
0c84883 to
b2ab849
Compare
|
Sorry for the force pushes 😁 Didn't want to make more debugging commits. |
stp-ip
left a comment
There was a problem hiding this comment.
/lgtm
merging as is to get this in and then we can iterate on dockerv2 as well as proxy.
What this PR does / why we need it:
Adds external e2e tests
Which issue this PR fixes:
fixes #291
fixes #203
Special notes for your reviewer:
Covered types:
hostpathgometadockerv2gitproxyQuestions:
/etc/hostswhen it gets changed? That way whenever we want to add a record to a test-case we have to add it to /e2e/URIs so the manager-script can read it and add them to /etc/hosts.