update tests to match new test func signature
This commit is contained in:
parent
7188d5cbfe
commit
ff7d51a9b4
|
@ -19,7 +19,7 @@ func TestResourceProvider_stop(t *testing.T) {
|
|||
p := new(terraform.MockResourceProvider)
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -46,7 +46,7 @@ func TestResourceProvider_stopErrors(t *testing.T) {
|
|||
// Create a mock provider
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -74,7 +74,7 @@ func TestResourceProvider_input(t *testing.T) {
|
|||
p := new(terraform.MockResourceProvider)
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -116,7 +116,7 @@ func TestResourceProvider_configure(t *testing.T) {
|
|||
p := new(terraform.MockResourceProvider)
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -149,7 +149,7 @@ func TestResourceProvider_configure_errors(t *testing.T) {
|
|||
// Create a mock provider
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -184,7 +184,7 @@ func TestResourceProvider_configure_warnings(t *testing.T) {
|
|||
// Create a mock provider
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -216,7 +216,7 @@ func TestResourceProvider_apply(t *testing.T) {
|
|||
// Create a mock provider
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -255,7 +255,7 @@ func TestResourceProvider_diff(t *testing.T) {
|
|||
// Create a mock provider
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -301,7 +301,7 @@ func TestResourceProvider_diff_error(t *testing.T) {
|
|||
// Create a mock provider
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -340,7 +340,7 @@ func TestResourceProvider_refresh(t *testing.T) {
|
|||
// Create a mock provider
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -378,7 +378,7 @@ func TestResourceProvider_importState(t *testing.T) {
|
|||
// Create a mock provider
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -417,7 +417,7 @@ func TestResourceProvider_resources(t *testing.T) {
|
|||
// Create a mock provider
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -450,7 +450,7 @@ func TestResourceProvider_readdataapply(t *testing.T) {
|
|||
// Create a mock provider
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -488,7 +488,7 @@ func TestResourceProvider_datasources(t *testing.T) {
|
|||
// Create a mock provider
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -521,7 +521,7 @@ func TestResourceProvider_validate(t *testing.T) {
|
|||
// Create a mock provider
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -556,7 +556,7 @@ func TestResourceProvider_validate_errors(t *testing.T) {
|
|||
// Create a mock provider
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -597,7 +597,7 @@ func TestResourceProvider_validate_warns(t *testing.T) {
|
|||
// Create a mock provider
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -636,7 +636,7 @@ func TestResourceProvider_validateResource(t *testing.T) {
|
|||
// Create a mock provider
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -674,7 +674,7 @@ func TestResourceProvider_validateResource_errors(t *testing.T) {
|
|||
// Create a mock provider
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -718,7 +718,7 @@ func TestResourceProvider_validateResource_warns(t *testing.T) {
|
|||
// Create a mock provider
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -760,7 +760,7 @@ func TestResourceProvider_validateDataSource(t *testing.T) {
|
|||
// Create a mock provider
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -798,7 +798,7 @@ func TestResourceProvider_close(t *testing.T) {
|
|||
// Create a mock provider
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProviderFunc: testProviderFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
|
|
@ -19,7 +19,7 @@ func TestResourceProvisioner_stop(t *testing.T) {
|
|||
p := new(terraform.MockResourceProvisioner)
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProvisionerFunc: testProvisionerFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -46,7 +46,7 @@ func TestResourceProvisioner_stopErrors(t *testing.T) {
|
|||
// Create a mock provider
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProvisionerFunc: testProvisionerFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -74,7 +74,7 @@ func TestResourceProvisioner_apply(t *testing.T) {
|
|||
p := new(terraform.MockResourceProvisioner)
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProvisionerFunc: testProvisionerFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -105,7 +105,7 @@ func TestResourceProvisioner_validate(t *testing.T) {
|
|||
p := new(terraform.MockResourceProvisioner)
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProvisionerFunc: testProvisionerFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -139,7 +139,7 @@ func TestResourceProvisioner_validate_errors(t *testing.T) {
|
|||
p := new(terraform.MockResourceProvisioner)
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProvisionerFunc: testProvisionerFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -179,7 +179,7 @@ func TestResourceProvisioner_validate_warns(t *testing.T) {
|
|||
p := new(terraform.MockResourceProvisioner)
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProvisionerFunc: testProvisionerFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
@ -217,7 +217,7 @@ func TestResourceProvisioner_close(t *testing.T) {
|
|||
p := new(terraform.MockResourceProvisioner)
|
||||
client, _ := plugin.TestPluginRPCConn(t, pluginMap(&ServeOpts{
|
||||
ProvisionerFunc: testProvisionerFixed(p),
|
||||
}))
|
||||
}), nil)
|
||||
defer client.Close()
|
||||
|
||||
// Request the provider
|
||||
|
|
Loading…
Reference in New Issue