Skip to content

Commit

Permalink
add test for stackPolicy method
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaun committed Mar 25, 2017
1 parent b2c2c23 commit 87c8c9e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions commands/stack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func TestStack(t *testing.T) {
t.Error(err)
}
}

}

// TestDeploy - test deploy and terminate stack.
Expand Down Expand Up @@ -120,6 +121,11 @@ func TestDeploy(t *testing.T) {
t.Error(err)
}

// Test Set Stack Policy
if err := teststack.stackPolicy(sess); err != nil {
t.Errorf("%s - [%s]", err, teststack.policy)
}

// Test Terminate Stack
if err := teststack.terminate(sess); err != nil {
t.Error(err)
Expand Down
9 changes: 6 additions & 3 deletions examples/vpc/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
region: "eu-west-1"
project: "daidokoro"
region: eu-west-1
project: daidokoro

global:
tags:
Expand All @@ -9,8 +9,11 @@ global:

stacks:
vpc:
# stack policy - url or raw json can be specified here
policy: https://s3-eu-west-1.amazonaws.com/daidokoro-dev/policies/stack.json

cf:
cidr: 10.10.0.0/16
cidr: 10.11.0.0/16

subnet:
depends_on:
Expand Down

0 comments on commit 87c8c9e

Please sign in to comment.