-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- cosmetic style changes and refactoring - get rid of nested directory - remove dead code - unexport matcher struct - use canonical tag key - update suite name
- Loading branch information
1 parent
880d6df
commit 8431066
Showing
7 changed files
with
66 additions
and
102 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
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,48 @@ | ||
// +build integration | ||
|
||
package integration_test | ||
|
||
import ( | ||
"flag" | ||
"testing" | ||
"time" | ||
|
||
"github.com/weaveworks/eksctl/pkg/eks/api" | ||
|
||
. "github.com/onsi/ginkgo" | ||
. "github.com/onsi/gomega" | ||
) | ||
|
||
const ( | ||
createTimeout = 25 * time.Minute | ||
deleteTimeout = 15 * time.Minute | ||
getTimeout = 1 * time.Minute | ||
region = api.DefaultEKSRegion | ||
) | ||
|
||
var ( | ||
eksctlPath string | ||
|
||
// Flags to help with the development of the integration tests | ||
clusterName string | ||
doCreate bool | ||
doDelete bool | ||
kubeconfigPath string | ||
|
||
kubeconfigTemp bool | ||
) | ||
|
||
func init() { | ||
flag.StringVar(&eksctlPath, "eksctl.path", "../eksctl", "Path to eksctl") | ||
|
||
// Flags to help with the development of the integration tests | ||
flag.StringVar(&clusterName, "eksctl.cluster", "", "Cluster name (default: generate one)") | ||
flag.BoolVar(&doCreate, "eksctl.create", true, "Skip the creation tests. Useful for debugging the tests") | ||
flag.BoolVar(&doDelete, "eksctl.delete", true, "Skip the cleanup after the tests have run") | ||
flag.StringVar(&kubeconfigPath, "eksctl.kubeconfig", "", "Path to kubeconfig (default: create it a temporary file)") | ||
} | ||
|
||
func TestCreateIntegration(t *testing.T) { | ||
RegisterFailHandler(Fail) | ||
RunSpecs(t, "(Integration) Create, Get & Delete") | ||
} |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.