diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index a68fea312dc..00000000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "name": "Launch test function", - "type": "go", - "request": "launch", - "mode": "test", - "program": "${workspaceRoot}/tests/integration", - "args": [ - "-test.run", - "TestCliIntegration" - ] - }, - { - "name": "Connect to server", - "type": "go", - "request": "launch", - "mode": "remote", - "remotePath": "${workspaceRoot}", - "port": 25000, - "host": "127.0.0.1", - "program": "${workspaceRoot}", - "env": {}, - "args": [] - }, - { - "name": "Get clusters (no profile)", - "type": "go", - "request": "launch", - "mode": "debug", - "program": "${workspaceRoot}/cmd/eksctl", - "args": [ - "get", - "clusters", - "-o", - "table" - ] - } - ] -} \ No newline at end of file diff --git a/pkg/testutils/cluster.go b/pkg/testutils/cluster.go index d176578a276..fc6f4744a99 100644 --- a/pkg/testutils/cluster.go +++ b/pkg/testutils/cluster.go @@ -24,11 +24,3 @@ func NewFakeCluster(clusterName string, status string) *awseks.Cluster { return cluster } - -// ValidClusterStatus checks that the provided status is a valid -// status of a cluster according to AWS SDK -func ValidClusterStatus(status string) bool { - valid := map[string]bool{awseks.ClusterStatusActive: true, awseks.ClusterStatusCreating: true, awseks.ClusterStatusDeleting: true, awseks.ClusterStatusFailed: true} - - return valid[status] -}