added test to illustrate wrong behavior

This commit is contained in:
Jan Schumann 2015-06-10 17:20:41 +02:00
parent 2a6c4e0d2c
commit 5d600c70f2
1 changed files with 17 additions and 0 deletions

View File

@ -36,6 +36,23 @@ func TestBlockDevice(t *testing.T) {
},
},
},
{
Config: &BlockDevice{
DeviceName: "/dev/sdb",
VolumeSize: 8,
},
Result: &ec2.BlockDeviceMapping{
DeviceName: aws.String("/dev/sdb"),
VirtualName: aws.String(""),
EBS: &ec2.EBSBlockDevice{
Encrypted: aws.Boolean(false),
VolumeType: aws.String(""),
VolumeSize: aws.Long(8),
DeleteOnTermination: aws.Boolean(false),
},
},
},
{
Config: &BlockDevice{
DeviceName: "/dev/sdb",