forked from istio/istio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simpler, additional e2e functional test + auth test (istio#833)
Automatic merge from submit-queue simpler, additional e2e functional test + auth test This is for a couple things: a) an e2e test (using the e2e framework) that has minimum dependencies and fast start which can be use as a starting point for new tests that do not rely on bookinfo b) exercise fortio images, ingress rule svc2sc c) detect whether auth is working or not d) bug fix in fortio when server errors out e) faster test start and end (and updated README with the faster instructions) _background/justification_ We all spent a lot of time debugging complex end2end test over the last few weeks, Also people have been complaining that writing new tests is hard (which is partially true as I learned through writing one), and we also don't have test verifying auth is really on This PR makes progress toward solving all 3 problems, introducing a simpler (than mixer/bookinfo) test. A simpler test lets us quickly smoke test basic features. This is additional to tests that exists in pilot (as this is about end2end with all the actual components in place, same code as we release) e2e is not exclusively "website tasks testing" and should have as many sane tests as we can have A separate effort - though this simpler test does help already - is to optimize the runtime and probably split test into "every PR" tests and "nightly"... etc... ```release-note New simpler e2e functional tests, including an auth test. ``` Former-commit-id: fad04b1
- Loading branch information
1 parent
69762af
commit 49ddd8c
Showing
14 changed files
with
417 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_test") | ||
|
||
go_test( | ||
name = "go_default_test", | ||
srcs = ["simple1_test.go"], | ||
data = [":test_yamls"], | ||
tags = ["manual"], | ||
deps = [ | ||
"//devel/fortio:go_default_library", | ||
"//tests/e2e/framework:go_default_library", | ||
"//tests/e2e/util:go_default_library", | ||
"@com_github_golang_glog//:go_default_library", | ||
], | ||
) | ||
|
||
filegroup( | ||
name = "test_yamls", | ||
srcs = [ | ||
"servicesNotInjected.yaml", | ||
"servicesToBeInjected.yaml", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Client inside the cluster, not istio injected | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: fortio-noistio | ||
spec: | ||
ports: | ||
- port: 8080 | ||
name: http-echo | ||
- port: 8079 | ||
name: grpc-ping | ||
selector: | ||
app: fortio-noistio | ||
--- | ||
apiVersion: apps/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: raw-cli-deployement | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: fortio-noistio | ||
spec: | ||
containers: | ||
- name: fortio-noistio | ||
# That image runs the servers (so it will run forever) but has the | ||
# /usr/local/bin/fortio client | ||
image: {{.FortioImage}} | ||
imagePullPolicy: Always |
Oops, something went wrong.