Skip to content

Commit

Permalink
Merge pull request #53 from FloatXD/e2e-2
Browse files Browse the repository at this point in the history
add e2e test
  • Loading branch information
FloatXD authored Mar 3, 2023
2 parents 2693095 + c038d05 commit eeeb432
Show file tree
Hide file tree
Showing 52 changed files with 1,695 additions and 11,924 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ jobs:
steps:
- name: delete
run: |
sudo rm -rf /github/actions-runner/_work/hwameistor/hwameistor/_build
sudo rm -rf /github/actions-runner/_work/hwameistor/hwameistor/test/e2e/drbd-adapter/
sudo rm -rf /home/github/actions-runner/_work/hwameistor/hwameistor/_build
sudo rm -rf rm -rf /github/actions-runner/_work/hwameistor-operator/hwameistor-operator/_build
- name: Checkout
uses: actions/checkout@v2
with:
Expand Down
11 changes: 8 additions & 3 deletions test/pr-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@ set -e
date=$(date +%Y%m%d%H%M)
IMAGE_TAG=v${date}
export IMAGE_TAG=${IMAGE_TAG}
MODULES=(local-storage local-disk-manager scheduler admission evictor exporter apiserver)
OPERATOR_MODULE_NAME=operator
IMAGE_REGISTRY=172.30.45.210/hwameistor
export IMAGE_NAME=${IMAGE_REGISTRY}/${OPERATOR_MODULE_NAME}
MODULES=(operator)

function build_image(){
echo "Build hwameistor image"
export IMAGE_TAG=${IMAGE_TAG} && make image
export IMAGE_TAG=${IMAGE_TAG} && make build_image

for module in ${MODULES[@]}
do
Expand Down Expand Up @@ -67,7 +70,9 @@ function prepare_install_params() {
}

# Step1: build all images tagged with <image_registry>/<module>:<date>

timer_start=`date "+%Y-%m-%d %H:%M:%S"`
build_image
timer_end=`date "+%Y-%m-%d %H:%M:%S"`

# Step3: go e2e test
pwd
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit eeeb432

Please sign in to comment.