github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/builtin/providers/aws/resource_aws_config_test.go (about)

     1  package aws
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func TestAccAWSConfig(t *testing.T) {
     8  	testCases := map[string]map[string]func(t *testing.T){
     9  		"Config": {
    10  			"basic":        testAccConfigConfigRule_basic,
    11  			"ownerAws":     testAccConfigConfigRule_ownerAws,
    12  			"customlambda": testAccConfigConfigRule_customlambda,
    13  			"importAws":    testAccConfigConfigRule_importAws,
    14  			"importLambda": testAccConfigConfigRule_importLambda,
    15  		},
    16  		"ConfigurationRecorderStatus": {
    17  			"basic":        testAccConfigConfigurationRecorderStatus_basic,
    18  			"startEnabled": testAccConfigConfigurationRecorderStatus_startEnabled,
    19  			"importBasic":  testAccConfigConfigurationRecorderStatus_importBasic,
    20  		},
    21  		"ConfigurationRecorder": {
    22  			"basic":       testAccConfigConfigurationRecorder_basic,
    23  			"allParams":   testAccConfigConfigurationRecorder_allParams,
    24  			"importBasic": testAccConfigConfigurationRecorder_importBasic,
    25  		},
    26  		"DeliveryChannel": {
    27  			"basic":       testAccConfigDeliveryChannel_basic,
    28  			"allParams":   testAccConfigDeliveryChannel_allParams,
    29  			"importBasic": testAccConfigDeliveryChannel_importBasic,
    30  		},
    31  	}
    32  
    33  	for group, m := range testCases {
    34  		m := m
    35  		t.Run(group, func(t *testing.T) {
    36  			for name, tc := range m {
    37  				tc := tc
    38  				t.Run(name, func(t *testing.T) {
    39  					tc(t)
    40  				})
    41  			}
    42  		})
    43  	}
    44  }