Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Create cluster for peri via CI #194

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions cloudtest/packet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
34 changes: 16 additions & 18 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.Second * 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))
// }