Skip to content

Commit

Permalink
*: rename to "RUN_AWS_TESTS"
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
  • Loading branch information
gyuho committed Oct 29, 2018
1 parent fb4b17b commit 4f56fc7
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion internal/ec2/key_pair_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func TestKey(t *testing.T) {
if os.Getenv("RUN_AWS_UNIT_TESTS") != "1" {
if os.Getenv("RUN_AWS_TESTS") != "1" {
t.Skip()
}

Expand Down
2 changes: 1 addition & 1 deletion internal/ec2/s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

func TestS3(t *testing.T) {
if os.Getenv("RUN_AWS_UNIT_TESTS") != "1" {
if os.Getenv("RUN_AWS_TESTS") != "1" {
t.Skip()
}

Expand Down
2 changes: 1 addition & 1 deletion internal/ec2/security_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func TestSecurityGroup(t *testing.T) {
if os.Getenv("RUN_AWS_UNIT_TESTS") != "1" {
if os.Getenv("RUN_AWS_TESTS") != "1" {
t.Skip()
}

Expand Down
2 changes: 1 addition & 1 deletion internal/ec2/subnets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func TestSubnets(t *testing.T) {
if os.Getenv("RUN_AWS_UNIT_TESTS") != "1" {
if os.Getenv("RUN_AWS_TESTS") != "1" {
t.Skip()
}

Expand Down
2 changes: 1 addition & 1 deletion internal/ec2/vpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func TestVPC(t *testing.T) {
if os.Getenv("RUN_AWS_UNIT_TESTS") != "1" {
if os.Getenv("RUN_AWS_TESTS") != "1" {
t.Skip()
}

Expand Down
2 changes: 1 addition & 1 deletion internal/eks/key_pair_embedded_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func TestEmbeddedCreateKeyPair(t *testing.T) {
if os.Getenv("RUN_AWS_UNIT_TESTS") != "1" {
if os.Getenv("RUN_AWS_TESTS") != "1" {
t.Skip()
}

Expand Down
4 changes: 2 additions & 2 deletions internal/eks/s3/plugin_embedded_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
)

/*
RUN_AWS_UNIT_TESTS=1 go test -v -run TestEmbedded
RUN_AWS_TESTS=1 go test -v -run TestEmbedded
*/
func TestEmbedded(t *testing.T) {
if os.Getenv("RUN_AWS_UNIT_TESTS") != "1" {
if os.Getenv("RUN_AWS_TESTS") != "1" {
t.Skip()
}

Expand Down
2 changes: 1 addition & 1 deletion internal/eks/service_role_embedded_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func TestEmbeddedServiceRole(t *testing.T) {
if os.Getenv("RUN_AWS_UNIT_TESTS") != "1" {
if os.Getenv("RUN_AWS_TESTS") != "1" {
t.Skip()
}

Expand Down
2 changes: 1 addition & 1 deletion internal/eks/vpc_embedded_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func TestEmbeddedVPCStack(t *testing.T) {
if os.Getenv("RUN_AWS_UNIT_TESTS") != "1" {
if os.Getenv("RUN_AWS_TESTS") != "1" {
t.Skip()
}

Expand Down
4 changes: 2 additions & 2 deletions internal/integration/ec2_ssh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import (
)

/*
RUN_AWS_UNIT_TESTS=1 AWS_SHARED_CREDENTIALS_FILE=~/.aws/credentials go test -v -timeout 2h -run TestEC2SSH
RUN_AWS_TESTS=1 AWS_SHARED_CREDENTIALS_FILE=~/.aws/credentials go test -v -timeout 2h -run TestEC2SSH
tail -f /var/log/cloud-init-output.log
*/
func TestEC2SSH(t *testing.T) {
if os.Getenv("RUN_AWS_UNIT_TESTS") != "1" {
if os.Getenv("RUN_AWS_TESTS") != "1" {
t.Skip()
}

Expand Down

0 comments on commit 4f56fc7

Please sign in to comment.