From 6d81bba63c59eaf7157f112466e3656638e3a9d2 Mon Sep 17 00:00:00 2001 From: Artem Glazychev Date: Thu, 1 Feb 2024 13:35:00 +0700 Subject: [PATCH] Add heal extended suite Signed-off-by: Artem Glazychev --- .github/workflows/ci.yaml | 45 +++++++++++++++++++++++++++++++++ tests_heal_ext/heal_ext_test.go | 29 +++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 tests_heal_ext/heal_ext_test.go diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2e66e4d16..9c8b06158 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -253,6 +253,51 @@ jobs: name: Calico logs path: ${{ github.workspace }}/src/github.com/${{ github.repository }}/tests_single/calico-logs + ### HEAL EXTENDED SUITE + kind-heal-extended: + runs-on: ubuntu-latest + env: + KUBERNETES_VERSION: "v1.28.0" + steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.9.0 + with: + access_token: ${{ github.token }} + - uses: actions/setup-go@v1 + with: + go-version: 1.20.11 + github-token: ${{ github.token }} + - name: Set go env + run: | + echo GOPATH=$GITHUB_WORKSPACE >> $GITHUB_ENV + echo GO111MODULE=on >> $GITHUB_ENV + echo $GITHUB_WORKSPACE/bin >> $GITHUB_PATH + - uses: actions/checkout@v2 + with: + path: ${{ github.workspace }}/src/github.com/${{ github.repository }} + - uses: engineerd/setup-kind@v0.5.0 + with: + config: src/github.com/${{ github.repository }}/cluster-config.yaml + version: v0.20.0 + image: kindest/node:${{ env.KUBERNETES_VERSION }} + - name: Check kind cluster + run: | + kubectl version + kubectl get pods -A -o wide + working-directory: ${{ github.workspace }}/src/github.com/${{ github.repository }} + - name: Integration tests + run: | + go test -count 1 -timeout 1h -race -v ./tests_heal_ext -parallel 4 + env: + ARTIFACTS_DIR: heal-ext-logs/${{ env.KUBERNETES_VERSION }} + working-directory: ${{ github.workspace }}/src/github.com/${{ github.repository }} + - name: Upload artifacts + if: ${{ success() || failure() || cancelled() }} + uses: actions/upload-artifact@v2 + with: + name: heal-ext logs + path: ${{ github.workspace }}/src/github.com/${{ github.repository }}/tests_heal_ext/heal-ext-logs + ### INTERDOMAIN CLUSTER interdomain-kind: runs-on: ubuntu-latest diff --git a/tests_heal_ext/heal_ext_test.go b/tests_heal_ext/heal_ext_test.go new file mode 100644 index 000000000..d06c30edf --- /dev/null +++ b/tests_heal_ext/heal_ext_test.go @@ -0,0 +1,29 @@ +// Copyright (c) 2024 Cisco and/or its affiliates. +// +// SPDX-License-Identifier: Apache-2.0 +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at: +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package single + +import ( + "testing" + + "github.com/stretchr/testify/suite" + + "github.com/networkservicemesh/integration-tests/suites/heal_extended" +) + +func TestRunHealExtendedSuite(t *testing.T) { + suite.Run(t, new(heal_extended.Suite)) +}