From ecc0f7679eb04214358485edb78784baf3a43fda Mon Sep 17 00:00:00 2001 From: Dipankar Das Date: Tue, 24 Oct 2023 12:30:15 +0530 Subject: [PATCH] feat: added support for mock test to do scaleup and scale down Signed-off-by: Dipankar Das --- .github/workflows/test-mock.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-mock.yml b/.github/workflows/test-mock.yml index 1b9124f..58a9b37 100644 --- a/.github/workflows/test-mock.yml +++ b/.github/workflows/test-mock.yml @@ -17,7 +17,7 @@ on: - 'go.sum' branches: [ main ] jobs: - binary: + ksctl-cli-linux: if: ${{ github.event.label.name == 'pr/lgtm' || (github.event_name == 'push' && github.ref == 'refs/heads/main') }} runs-on: ubuntu-latest env: @@ -69,6 +69,17 @@ jobs: ksctl switch -p azure -n demo -r fake ksctl switch -p ha-azure -n ha-demo -r fake + + - name: civo scale up and down + run: | + ksctl delete ha-civo delete-nodes -n ha-demo --noWP 0 -r LON1 --approve -v + ksctl create ha-civo add-nodes -n ha-demo --noWP 1 --nodeSizeWP "fake.small" -r LON1 -v --approve + + - name: azure scale up and down + run: | + ksctl delete ha-azure delete-nodes -n ha-demo --noWP 0 -r fake --approve -v + ksctl create ha-azure add-nodes -n ha-demo --noWP 1 --nodeSizeWP "fake" -r fake -v --approve + - name: civo delete run: | ksctl delete civo -n demo -r LON1 -v --approve