upgrade tests and remove ICMPTypeCode for now

This commit is contained in:
Clint Shryock 2015-03-11 16:21:22 -05:00
parent 8a5eadedd1
commit 670d53b1a1
2 changed files with 2 additions and 13 deletions

View File

@ -31,7 +31,7 @@ func Test_expandNetworkACLEntry(t *testing.T) {
expected := []ec2.NetworkACLEntry{ expected := []ec2.NetworkACLEntry{
ec2.NetworkACLEntry{ ec2.NetworkACLEntry{
Protocol: aws.String("tcp"), Protocol: aws.String("6"),
PortRange: &ec2.PortRange{ PortRange: &ec2.PortRange{
From: aws.Integer(22), From: aws.Integer(22),
To: aws.Integer(22), To: aws.Integer(22),
@ -40,13 +40,9 @@ func Test_expandNetworkACLEntry(t *testing.T) {
RuleNumber: aws.Integer(1), RuleNumber: aws.Integer(1),
CIDRBlock: aws.String("0.0.0.0/0"), CIDRBlock: aws.String("0.0.0.0/0"),
Egress: aws.Boolean(true), Egress: aws.Boolean(true),
ICMPTypeCode: &ec2.ICMPTypeCode{
Code: aws.Integer(0),
Type: aws.Integer(0),
},
}, },
ec2.NetworkACLEntry{ ec2.NetworkACLEntry{
Protocol: aws.String("tcp"), Protocol: aws.String("6"),
PortRange: &ec2.PortRange{ PortRange: &ec2.PortRange{
From: aws.Integer(443), From: aws.Integer(443),
To: aws.Integer(443), To: aws.Integer(443),
@ -55,10 +51,6 @@ func Test_expandNetworkACLEntry(t *testing.T) {
RuleNumber: aws.Integer(2), RuleNumber: aws.Integer(2),
CIDRBlock: aws.String("0.0.0.0/0"), CIDRBlock: aws.String("0.0.0.0/0"),
Egress: aws.Boolean(true), Egress: aws.Boolean(true),
ICMPTypeCode: &ec2.ICMPTypeCode{
Code: aws.Integer(0),
Type: aws.Integer(0),
},
}, },
} }

View File

@ -1,7 +1,6 @@
package aws package aws
import ( import (
"log"
"reflect" "reflect"
"testing" "testing"
@ -62,8 +61,6 @@ func TestExpandIPPerms(t *testing.T) {
} }
perms := expandIPPerms("foo", expanded) perms := expandIPPerms("foo", expanded)
log.Printf("wtf is perms:\n%#v", perms)
expected := []awsEC2.IPPermission{ expected := []awsEC2.IPPermission{
awsEC2.IPPermission{ awsEC2.IPPermission{
IPProtocol: aws.String("icmp"), IPProtocol: aws.String("icmp"),