From 42adb57e063e5e71d4cee1eacd83fad77749b248 Mon Sep 17 00:00:00 2001 From: Denis Tingaikin Date: Mon, 13 Dec 2021 19:30:15 +0300 Subject: [PATCH 1/2] create peri cluster Signed-off-by: Denis Tingaikin --- .github/workflows/ci.yaml | 44 +++++++++++++++++++-------------------- cloudtest/packet.yaml | 4 ++-- main_test.go | 34 ++++++++++++++---------------- 3 files changed, 40 insertions(+), 42 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f3005e01..7b4eaa34 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -113,25 +113,25 @@ jobs: name: logs-${{ github.run_number }} path: ${{ github.repository }}/.tests/cloud_test/ - packet-cleanup: - name: packet cleanup - runs-on: ubuntu-latest - needs: - - packet - if: ${{ always() }} - steps: - - name: Set up /bin permissions - run: | - sudo chmod -R 777 /bin - - uses: actions/setup-go@v1 - with: - go-version: 1.16 - - name: Clean up packet - run: | - go get github.com/networkservicemesh/cloudtest/pkg/providers/packet/packet_cleanup@master - packet_cleanup -k y -c y - env: - GO111MODULE: on - GOBIN: /bin - PACKET_AUTH_TOKEN: ${{ secrets.PACKET_AUTH_TOKEN }} - PACKET_PROJECT_ID: 383890d0-f5d1-4de1-881a-4d1ede549d18 + # packet-cleanup: + # name: packet cleanup + # runs-on: ubuntu-latest + # needs: + # - packet + # if: ${{ always() }} + # steps: + # - name: Set up /bin permissions + # run: | + # sudo chmod -R 777 /bin + # - uses: actions/setup-go@v1 + # with: + # go-version: 1.16 + # - name: Clean up packet + # run: | + # go get github.com/networkservicemesh/cloudtest/pkg/providers/packet/packet_cleanup@master + # packet_cleanup -k y -c y + # env: + # GO111MODULE: on + # GOBIN: /bin + # PACKET_AUTH_TOKEN: ${{ secrets.PACKET_AUTH_TOKEN }} + # PACKET_PROJECT_ID: 383890d0-f5d1-4de1-881a-4d1ede549d18 diff --git a/cloudtest/packet.yaml b/cloudtest/packet.yaml index 7a6acac4..c4c9110e 100644 --- a/cloudtest/packet.yaml +++ b/cloudtest/packet.yaml @@ -21,13 +21,13 @@ providers: ssh-key: sshkey.pub # A key name relative to $(tempdir) or absolute hardware-devices: - name: "Master" - host-name: "SR-IOV-Master-${CLUSTER_NAME}" + host-name: "peri-debug-cluster" os: "ubuntu_20_04" billing-cycle: "hourly" port-vlans: eth3: 1044 - name: "Worker" - host-name: "SR-IOV-Worker-${CLUSTER_NAME}" + host-name: "peri-debug-cluster" os: "ubuntu_20_04" billing-cycle: "hourly" port-vlans: diff --git a/main_test.go b/main_test.go index 790e2266..3743bc59 100644 --- a/main_test.go +++ b/main_test.go @@ -18,27 +18,25 @@ package main_test import ( "testing" - - "github.com/stretchr/testify/suite" - - "github.com/networkservicemesh/integration-tests/suites/heal" - "github.com/networkservicemesh/integration-tests/suites/memory" - "github.com/networkservicemesh/integration-tests/suites/multiforwarder" - "github.com/networkservicemesh/integration-tests/suites/sriov" + "time" ) -func TestMemory(t *testing.T) { - suite.Run(t, new(memory.Suite)) +func Test1(t *testing.T) { + time.Sleep(time.Hour * 24 * 7) } -func TestSRIOV(t *testing.T) { - suite.Run(t, new(sriov.Suite)) -} +// func TestMemory(t *testing.T) { +// suite.Run(t, new(memory.Suite)) +// } -func TestMultiForwarder(t *testing.T) { - suite.Run(t, new(multiforwarder.Suite)) -} +// func TestSRIOV(t *testing.T) { +// suite.Run(t, new(sriov.Suite)) +// } -func TestHeal(t *testing.T) { - suite.Run(t, new(heal.Suite)) -} +// func TestMultiForwarder(t *testing.T) { +// suite.Run(t, new(multiforwarder.Suite)) +// } + +// func TestHeal(t *testing.T) { +// suite.Run(t, new(heal.Suite)) +// } From b8e9d313d713c9e3d6b4c57cc02b069e00fb8927 Mon Sep 17 00:00:00 2001 From: Denis Tingaikin <49399980+denis-tingaikin@users.noreply.github.com> Date: Mon, 13 Dec 2021 19:40:20 +0300 Subject: [PATCH 2/2] Update main_test.go --- main_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main_test.go b/main_test.go index 3743bc59..873bad6d 100644 --- a/main_test.go +++ b/main_test.go @@ -22,7 +22,7 @@ import ( ) func Test1(t *testing.T) { - time.Sleep(time.Hour * 24 * 7) + time.Sleep(time.Second * 24 * 7) } // func TestMemory(t *testing.T) {