mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Merge pull request #3886 from hashicorp/b-rename-tests
providers/aws/structure
This commit is contained in:
commit
86565559b2
@ -37,7 +37,7 @@ func testConf() map[string]string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestexpandIPPerms(t *testing.T) {
|
func TestExpandIPPerms(t *testing.T) {
|
||||||
hash := schema.HashString
|
hash := schema.HashString
|
||||||
|
|
||||||
expanded := []interface{}{
|
expanded := []interface{}{
|
||||||
@ -287,7 +287,7 @@ func TestExpandIPPerms_nonVPC(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestexpandListeners(t *testing.T) {
|
func TestExpandListeners(t *testing.T) {
|
||||||
expanded := []interface{}{
|
expanded := []interface{}{
|
||||||
map[string]interface{}{
|
map[string]interface{}{
|
||||||
"instance_port": 8000,
|
"instance_port": 8000,
|
||||||
@ -317,7 +317,7 @@ func TestexpandListeners(t *testing.T) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestflattenHealthCheck(t *testing.T) {
|
func TestFlattenHealthCheck(t *testing.T) {
|
||||||
cases := []struct {
|
cases := []struct {
|
||||||
Input *elb.HealthCheck
|
Input *elb.HealthCheck
|
||||||
Output []map[string]interface{}
|
Output []map[string]interface{}
|
||||||
@ -367,7 +367,7 @@ func TestExpandStringList(t *testing.T) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestexpandParameters(t *testing.T) {
|
func TestExpandParameters(t *testing.T) {
|
||||||
expanded := []interface{}{
|
expanded := []interface{}{
|
||||||
map[string]interface{}{
|
map[string]interface{}{
|
||||||
"name": "character_set_client",
|
"name": "character_set_client",
|
||||||
@ -394,11 +394,11 @@ func TestexpandParameters(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestexpandElasticacheParameters(t *testing.T) {
|
func TestExpandElasticacheParameters(t *testing.T) {
|
||||||
expanded := []interface{}{
|
expanded := []interface{}{
|
||||||
map[string]interface{}{
|
map[string]interface{}{
|
||||||
"name": "character_set_client",
|
"name": "activerehashing",
|
||||||
"value": "utf8",
|
"value": "yes",
|
||||||
"apply_method": "immediate",
|
"apply_method": "immediate",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -407,7 +407,7 @@ func TestexpandElasticacheParameters(t *testing.T) {
|
|||||||
t.Fatalf("bad: %#v", err)
|
t.Fatalf("bad: %#v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
expected := &elasticache.Parameter{
|
expected := &elasticache.ParameterNameValue{
|
||||||
ParameterName: aws.String("activerehashing"),
|
ParameterName: aws.String("activerehashing"),
|
||||||
ParameterValue: aws.String("yes"),
|
ParameterValue: aws.String("yes"),
|
||||||
}
|
}
|
||||||
@ -420,7 +420,7 @@ func TestexpandElasticacheParameters(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestflattenParameters(t *testing.T) {
|
func TestFlattenParameters(t *testing.T) {
|
||||||
cases := []struct {
|
cases := []struct {
|
||||||
Input []*rds.Parameter
|
Input []*rds.Parameter
|
||||||
Output []map[string]interface{}
|
Output []map[string]interface{}
|
||||||
@ -449,7 +449,7 @@ func TestflattenParameters(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestflattenElasticacheParameters(t *testing.T) {
|
func TestFlattenElasticacheParameters(t *testing.T) {
|
||||||
cases := []struct {
|
cases := []struct {
|
||||||
Input []*elasticache.Parameter
|
Input []*elasticache.Parameter
|
||||||
Output []map[string]interface{}
|
Output []map[string]interface{}
|
||||||
@ -478,7 +478,7 @@ func TestflattenElasticacheParameters(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestexpandInstanceString(t *testing.T) {
|
func TestExpandInstanceString(t *testing.T) {
|
||||||
|
|
||||||
expected := []*elb.Instance{
|
expected := []*elb.Instance{
|
||||||
&elb.Instance{InstanceId: aws.String("test-one")},
|
&elb.Instance{InstanceId: aws.String("test-one")},
|
||||||
@ -497,7 +497,7 @@ func TestexpandInstanceString(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestflattenNetworkInterfacesPrivateIPAddresses(t *testing.T) {
|
func TestFlattenNetworkInterfacesPrivateIPAddresses(t *testing.T) {
|
||||||
expanded := []*ec2.NetworkInterfacePrivateIpAddress{
|
expanded := []*ec2.NetworkInterfacePrivateIpAddress{
|
||||||
&ec2.NetworkInterfacePrivateIpAddress{PrivateIpAddress: aws.String("192.168.0.1")},
|
&ec2.NetworkInterfacePrivateIpAddress{PrivateIpAddress: aws.String("192.168.0.1")},
|
||||||
&ec2.NetworkInterfacePrivateIpAddress{PrivateIpAddress: aws.String("192.168.0.2")},
|
&ec2.NetworkInterfacePrivateIpAddress{PrivateIpAddress: aws.String("192.168.0.2")},
|
||||||
@ -522,7 +522,7 @@ func TestflattenNetworkInterfacesPrivateIPAddresses(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestflattenGroupIdentifiers(t *testing.T) {
|
func TestFlattenGroupIdentifiers(t *testing.T) {
|
||||||
expanded := []*ec2.GroupIdentifier{
|
expanded := []*ec2.GroupIdentifier{
|
||||||
&ec2.GroupIdentifier{GroupId: aws.String("sg-001")},
|
&ec2.GroupIdentifier{GroupId: aws.String("sg-001")},
|
||||||
&ec2.GroupIdentifier{GroupId: aws.String("sg-002")},
|
&ec2.GroupIdentifier{GroupId: aws.String("sg-002")},
|
||||||
@ -543,7 +543,7 @@ func TestflattenGroupIdentifiers(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestexpandPrivateIPAddresses(t *testing.T) {
|
func TestExpandPrivateIPAddresses(t *testing.T) {
|
||||||
|
|
||||||
ip1 := "192.168.0.1"
|
ip1 := "192.168.0.1"
|
||||||
ip2 := "192.168.0.2"
|
ip2 := "192.168.0.2"
|
||||||
@ -567,7 +567,7 @@ func TestexpandPrivateIPAddresses(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestflattenAttachment(t *testing.T) {
|
func TestFlattenAttachment(t *testing.T) {
|
||||||
expanded := &ec2.NetworkInterfaceAttachment{
|
expanded := &ec2.NetworkInterfaceAttachment{
|
||||||
InstanceId: aws.String("i-00001"),
|
InstanceId: aws.String("i-00001"),
|
||||||
DeviceIndex: aws.Int64(int64(1)),
|
DeviceIndex: aws.Int64(int64(1)),
|
||||||
|
Loading…
Reference in New Issue
Block a user