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

Add first e2e test case #139

Closed
wants to merge 1 commit into from

Conversation

leakingtapan
Copy link
Contributor

@leakingtapan leakingtapan commented Dec 5, 2018

What is this PR about? / Why do we need it?
Assuming a cluster is created and CSI driver is deployed, this test case automates the steps:

  1. create storageclass, pvc
  2. create pod
  3. make sure the pod is running (this means the volume is mounted
    successfully)

What testing is done?
Added a test script ./hack/run-e2e-test

>> ./hack/run-e2e-test

=== RUN   TestE2E
Running Suite: AWS EBS CSI Driver End-to-End Tests
==================================================
Random Seed: 1543987438
Will run 1 of 1 specs

Dynamic Provisioning
  should create a volume on demand
  /Users/chengpan/workspace/csi-ebs/src/github.com/kubernetes-sigs/aws-ebs-csi-driver/tests/e2e/dynamic_provisioning_test.go:35
Creating StorageClass: testdata/dynamic_provisioning/storageclass.yaml
Creating PVC: testdata/dynamic_provisioning/claim.yaml
Creating Pod: testdata/dynamic_provisioning/pod.yaml
Pod is running
Deleting Pod: testdata/dynamic_provisioning/pod.yaml
Deleting PVC: testdata/dynamic_provisioning/claim.yaml
Deleting StorageClass: testdata/dynamic_provisioning/storageclass.yaml

• [SLOW TEST:37.039 seconds]
Dynamic Provisioning
/Users/chengpan/workspace/csi-ebs/src/github.com/kubernetes-sigs/aws-ebs-csi-driver/tests/e2e/dynamic_provisioning_test.go:33
  should create a volume on demand
  /Users/chengpan/workspace/csi-ebs/src/github.com/kubernetes-sigs/aws-ebs-csi-driver/tests/e2e/dynamic_provisioning_test.go:35
------------------------------

Ran 1 of 1 Specs in 37.039 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 0 Skipped
--- PASS: TestE2E (37.04s)
PASS

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: leakingtapan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 5, 2018
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Dec 5, 2018
@leakingtapan leakingtapan mentioned this pull request Dec 5, 2018
13 tasks
The test case automates the steps:
1. create storageclass, pvc
2. create pod
3. make sure the pod is running (this means the volume is mounted
successfully)
@coveralls
Copy link

coveralls commented Dec 8, 2018

Pull Request Test Coverage Report for Build 215

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 51.035%

Totals Coverage Status
Change from base Build 210: 0.0%
Covered Lines: 567
Relevant Lines: 1111

💛 - Coveralls

@leakingtapan leakingtapan deleted the e2e-test branch February 1, 2019 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants