forked from openebs-archive/maya
-
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.
chore(cStorVolume_bdd): add negative test cases for cStorVolumeProvis…
…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 <[email protected]>
- Loading branch information
1 parent
071e801
commit d127063
Showing
15 changed files
with
517 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# | ||
# This Dockerfile builds a recent cstor-pool-mgmt-debug using the latest binary from | ||
# cstor-pool-mgmt releases. | ||
# | ||
|
||
#openebs/cstor-base is the image that contains cstor related binaries and | ||
#libraries - zpool, zfs, zrepl | ||
#FROM openebs/cstor-base:ci | ||
ARG BASE_IMAGE | ||
FROM $BASE_IMAGE | ||
|
||
COPY cstor-pool-mgmt /usr/local/bin/ | ||
COPY entrypoint.sh /usr/local/bin/ | ||
|
||
RUN printf '#!/bin/bash\nif [ $# -lt 1 ]; then\n\techo "argument missing"\n\texit 1\nfi\neval "$*"\n' >> /usr/local/bin/execute.sh | ||
|
||
RUN chmod +x /usr/local/bin/execute.sh | ||
RUN apt install netcat -y | ||
RUN chmod +x /usr/local/bin/entrypoint.sh | ||
|
||
ARG BUILD_DATE | ||
LABEL org.label-schema.name="cstor-pool-mgmt" | ||
LABEL org.label-schema.description="OpenEBS" | ||
LABEL org.label-schema.url="http://www.openebs.io/" | ||
LABEL org.label-schema.vcs-url="https://github.com/openebs/maya" | ||
LABEL org.label-schema.schema-version="1.0" | ||
LABEL org.label-schema.build-date=$BUILD_DATE | ||
|
||
ENTRYPOINT entrypoint.sh | ||
EXPOSE 7676 |
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,8 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
|
||
rm /usr/local/bin/zrepl | ||
exec /usr/local/bin/cstor-pool-mgmt start | ||
exec service ssh start | ||
exec service rsyslog start |
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
Oops, something went wrong.