-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #151 from vladimirvivien/fix-e2e-and-generated-keys
Refactor of the end-to-end test framework to support.
- Loading branch information
Showing
27 changed files
with
759 additions
and
634 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,5 @@ jobs: | |
sudo ufw allow 2200:2300/tcp | ||
sudo ufw enable | ||
sudo ufw status verbose | ||
mkdir -p ~/.ssh | ||
chmod 765 ~/.ssh | ||
cp testing/keys/* ~/.ssh/ | ||
GO111MODULE=on go get sigs.k8s.io/[email protected] | ||
GO111MODULE=on go test -timeout 600s -v -p 1 ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
dist | ||
.idea | ||
.DS_Store | ||
.testing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Copyright (c) 2019 VMware, Inc. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package k8s | ||
|
||
import ( | ||
"os" | ||
"testing" | ||
|
||
"github.com/sirupsen/logrus" | ||
|
||
testcrashd "github.com/vmware-tanzu/crash-diagnostics/testing" | ||
) | ||
|
||
var ( | ||
support *testcrashd.TestSupport | ||
) | ||
|
||
func TestMain(m *testing.M) { | ||
test, err := testcrashd.Init() | ||
if err != nil { | ||
logrus.Fatal("failed to initialize test support:", err) | ||
} | ||
|
||
support = test | ||
|
||
if err := support.SetupKindCluster(); err != nil { | ||
logrus.Fatal(err) | ||
} | ||
_, err = support.SetupKindKubeConfig() | ||
if err != nil { | ||
logrus.Fatal(err) | ||
} | ||
|
||
result := m.Run() | ||
|
||
if err := support.TearDown(); err != nil { | ||
logrus.Fatal(err) | ||
} | ||
|
||
os.Exit(result) | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.