Skip to content

Commit

Permalink
Run CNINode integration tests in canary
Browse files Browse the repository at this point in the history
  • Loading branch information
sushrk committed May 21, 2024
1 parent f61320b commit a7f4106
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/test/run-canary-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ function run_canary_tests() {
echo "skipping Windows tests"
fi
(CGO_ENABLED=0 ginkgo --no-color --focus="CANARY" $EXTRA_GINKGO_FLAGS -v --timeout 5m $GINKGO_TEST_BUILD_DIR/webhook.test -- --cluster-kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID)
(CGO_ENABLED=0 ginkgo --no-color --focus="CANARY" $EXTRA_GINKGO_FLAGS -v --timeout 10m $GINKGO_TEST_BUILD_DIR/cninode.test -- --cluster-kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID)
}

echo "Starting the ginkgo test suite"
Expand Down
1 change: 1 addition & 0 deletions scripts/test/run-integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function run_integration_tests(){
echo "skipping Windows tests"
fi
(cd $INTEGRATION_TEST_DIR/webhook && CGO_ENABLED=0 ginkgo --skip=LOCAL $EXTRA_GINKGO_FLAGS -v -timeout=5m -- -cluster-kubeconfig=$KUBE_CONFIG_PATH -cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id $VPC_ID) || TEST_RESULT=fail
(cd $INTEGRATION_TEST_DIR/cninode && CGO_ENABLED=0 ginkgo --skip=LOCAL $EXTRA_GINKGO_FLAGS -v -timeout=10m -- -cluster-kubeconfig=$KUBE_CONFIG_PATH -cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id $VPC_ID) || TEST_RESULT=fail

if [[ "$TEST_RESULT" == fail ]]; then
exit 1
Expand Down
2 changes: 1 addition & 1 deletion test/integration/cninode/cninode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
)

var _ = Describe("CNINode test", func() {
var _ = Describe("[CANARY]CNINode test", func() {
Describe("CNINode count verification on adding or removing node", func() {
var oldMinSize int64
var oldMaxSize int64
Expand Down

0 comments on commit a7f4106

Please sign in to comment.