Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: e2e test framework backbone #18

Merged
merged 1 commit into from
May 5, 2021
Merged

test: e2e test framework backbone #18

merged 1 commit into from
May 5, 2021

Conversation

chewong
Copy link
Contributor

@chewong chewong commented May 4, 2021

Signed-off-by: Ernest Wong [email protected]

This PR adds the backbone of the e2e test framework, which is largely based on https://github.com/kubernetes/kubernetes/tree/master/test/e2e/framework.

To try out the framework, run:

 E2E_ARGS=-kubeconfig=<Path to your KUBECONFIG> make test-e2e
~/go/src/github.com/Azure/aad-pod-managed-identity(e2e-backbone*) »
no op
/Library/Developer/CommandLineTools/usr/bin/make test-e2e-run
/Users/ernestwong/go/src/github.com/Azure/aad-pod-managed-identity/hack/tools/bin/ginkgo-v1.15.2 -v -trace \
                -focus="" \
                -skip="" \
                -nodes=3 \
                --noColor=false \
                /Users/ernestwong/go/src/github.com/Azure/aad-pod-managed-identity/bin/e2e.test -- -kubeconfig=/Users/ernestwong/.kube/config
Running Suite: AAD Pod Managed Identity E2E Test Suite
======================================================
Random Seed: 1620165996 - Will randomize all specs
Will run 1 specs

Running in parallel across 3 nodes

May  4 15:06:36.043: INFO: >>> kubeConfig: /Users/ernestwong/.kube/config
May  4 15:06:36.049: INFO: Waiting up to 30m0s for all (but 0) nodes to be schedulable
May  4 15:06:36.250: INFO: Waiting up to 10m0s for all pods (need at least 0) in namespace 'kube-system' to be running and ready
May  4 15:06:36.370: INFO: 19 / 19 pods in namespace 'kube-system' are running and ready (0 seconds elapsed)
May  4 15:06:36.370: INFO: expected 10 pod replicas in namespace 'kube-system', 10 are Running and Ready.
May  4 15:06:36.389: INFO: kube-apiserver version: v1.20.5


May  4 15:06:36.401: INFO: Running AfterSuite actions on all node


May  4 15:06:36.414: INFO: Running AfterSuite actions on all node


Webhook 
  list pods
  /Users/ernestwong/go/src/github.com/Azure/aad-pod-managed-identity/test/e2e/webhook/webhook.go:21

[BeforeEach] Webhook
  /Users/ernestwong/go/pkg/mod/k8s.io/[email protected]/test/e2e/framework/framework.go:174
STEP: Creating a kubernetes client
May  4 15:06:36.399: INFO: >>> kubeConfig: /Users/ernestwong/.kube/config
STEP: Building a namespace api object, basename webhook
May  4 15:06:37.028: INFO: No PodSecurityPolicies found; assuming PodSecurityPolicy is disabled.
STEP: Waiting for a default service account to be provisioned in namespace
[BeforeEach] Webhook
  /Users/ernestwong/go/src/github.com/Azure/aad-pod-managed-identity/test/e2e/webhook/webhook.go:17
[It] list pods
  /Users/ernestwong/go/src/github.com/Azure/aad-pod-managed-identity/test/e2e/webhook/webhook.go:21
May  4 15:06:37.142: INFO: Number of pods in kube-system: 19
[AfterEach] Webhook
  /Users/ernestwong/go/pkg/mod/k8s.io/[email protected]/test/e2e/framework/framework.go:175
May  4 15:06:37.142: INFO: Waiting up to 3m0s for all (but 0) nodes to be ready
STEP: Destroying namespace "webhook-8081" for this suite.

•
------------------------------
May  4 15:06:37.198: INFO: Running AfterSuite actions on all node


Ran 1 of 1 Specs in 1.160 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 0 Skipped


Ginkgo ran 1 suite in 1.194008168s
Test Suite Passed

@chewong chewong requested a review from aramase May 4, 2021 22:13
Copy link
Member

@aramase aramase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this file test/e2e/.gitkeep meant to be added?

go.mod Show resolved Hide resolved
@chewong chewong merged commit 6d29d70 into Azure:main May 5, 2021
@chewong chewong deleted the e2e-backbone branch May 5, 2021 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants