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

chore(cStorVolume_bdd): add negative test cases for cStorVolumeProvisioning #1530

Merged

Conversation

mittachaitu
Copy link

@mittachaitu mittachaitu commented Nov 18, 2019

Signed-off-by: mittachaitu sai.chaithanya@mayadata.io

What this PR does / why we need it:
This PR does the following changes

  1. This PR provides the capability to get debug build for the cstor-pool-mgmt.
  2. Debug build has an injection server running on port 8080 on all the cstor-pool-mgmgt
    which can be used to inject the errors for CR's and ZFS operations for negative path testing.

Test Process Covered In BDD:

  • Inject ZFS Creation error and CVR updated Error by selecting one random Pool(volume dataset won't be created and CVR update will not be done).
  • Eject the ZFS Creation error and check whether the dataset is created or not.
  • Eject the CVR update Error and check the CVR status it should be Healthy.

To Run Positive Volume Provisioning BDD:

  1. Navigate to tests/cstor/volume using cd.
  2. In your command line run the following command to execute negative BDD.
cmd: ginkgo -v -focus="\[Cstor Volume Provisioning Positive\]" -- -kubeconfig=/home/sai/.kube/config -cstor-maxpools=3 -cstor-replicas=3

To Run Negative Volume Provisioning BDD:
Perform the following steps to run the negative tests on your local machine:

  1. Navigate to tests/cstor/volume using cd.
  2. In your command line run the following command to execute negative BDD
   CMD: ginkgo -v  -focus="\[Cstor Volume Provisioning Negative\]" -- -kubeconfig=/home/sai/.kube/config -cstor-maxpools=3 -cstor-replicas=3

Special notes for your reviewer:

  1. Need to write autogenerated code for debug build[Will be picked once the other priority items are completed].

Checklist:

  • Fixes #
  • Labelled this PR & related issue with documentation tag
  • PR messages has document related information
  • Labelled this PR & related issue with breaking-changes tag
  • PR messages has breaking changes related information
  • Labelled this PR & related issue with requires-upgrade tag
  • PR messages has upgrade related information
  • Commit has unit tests
  • Commit has integration tests

mittachaitu added 2 commits November 18, 2019 17:59
…ioning

This PR does the following changes
1. This PR provides the capability to get debug build for the cstor-pool-mgmt.
2. Debug build has an injection server running on port 8080 on all the cstor-pool-mgmgt
   which can be used to inject the errors for CR's and ZFS operations for negative path testing.

**Perform the following steps to run the negative tests on your local machine:**
1. Navigate to tests/cstor/volume using cd.
2. In your command line run the following command to execute negative BDD
   CMD: ginkgo -v  -focus="\[Cstor Volume Provisioning Negative\]" -- -kubeconfig=/home/sai/.kube/config -cstor-maxpools=3 -cstor-replicas=3

Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
…ted resources

Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
mittachaitu added 2 commits November 18, 2019 19:12
…uild

Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
Copy link
Contributor

@shubham14bajpai shubham14bajpai left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@prateekpandey14 prateekpandey14 left a comment

Choose a reason for hiding this comment

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

lgtm

@vishnuitta vishnuitta merged commit e59a8de into openebs-archive:master Dec 17, 2019
rahulchheda pushed a commit to rahulchheda/maya that referenced this pull request Dec 18, 2019
…ioning (openebs-archive#1530)

1. This PR provides the capability to get debug build for the cstor-pool-mgmt.
2. Debug build has an injection server running on port 8080 on all the cstor-pool-mgmgt
   which can be used to inject the errors for CR's and ZFS operations for negative path testing.

**Perform the following steps to run the negative tests on your local machine:**
1. Navigate to tests/cstor/volume using cd.
2. In your command line run the following command to execute negative BDD
   CMD: ginkgo -v  -focus="\[Cstor Volume Provisioning Negative\]" -- -kubeconfig=/home/sai/.kube/config -cstor-maxpools=3 -cstor-replicas=3

Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
shubham14bajpai pushed a commit to shubham14bajpai/maya that referenced this pull request Dec 27, 2019
…ioning (openebs-archive#1530)

1. This PR provides the capability to get debug build for the cstor-pool-mgmt.
2. Debug build has an injection server running on port 8080 on all the cstor-pool-mgmgt
   which can be used to inject the errors for CR's and ZFS operations for negative path testing.

**Perform the following steps to run the negative tests on your local machine:**
1. Navigate to tests/cstor/volume using cd.
2. In your command line run the following command to execute negative BDD
   CMD: ginkgo -v  -focus="\[Cstor Volume Provisioning Negative\]" -- -kubeconfig=/home/sai/.kube/config -cstor-maxpools=3 -cstor-replicas=3

Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
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.

4 participants