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

View File

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