@ -814,7 +814,7 @@ func TestContext2Apply_providerAliasConfigure(t *testing.T) {
if diags . HasErrors ( ) {
t . Fatalf ( "diags: %s" , diags . Err ( ) )
} else {
t . Log f ( legacyDiffComparisonString ( plan . Changes ) )
t . Log ( legacyDiffComparisonString ( plan . Changes ) )
}
// Configure to record calls AFTER Plan above
@ -950,7 +950,7 @@ func TestContext2Apply_createBeforeDestroy(t *testing.T) {
if diags . HasErrors ( ) {
t . Fatalf ( "diags: %s" , diags . Err ( ) )
} else {
t . Log f ( legacyDiffComparisonString ( plan . Changes ) )
t . Log ( legacyDiffComparisonString ( plan . Changes ) )
}
state , diags = ctx . Apply ( plan , m , nil )
@ -1030,7 +1030,7 @@ func TestContext2Apply_createBeforeDestroyUpdate(t *testing.T) {
if diags . HasErrors ( ) {
t . Fatalf ( "diags: %s" , diags . Err ( ) )
} else {
t . Log f ( legacyDiffComparisonString ( plan . Changes ) )
t . Log ( legacyDiffComparisonString ( plan . Changes ) )
}
state , diags = ctx . Apply ( plan , m , nil )
@ -1087,7 +1087,7 @@ func TestContext2Apply_createBeforeDestroy_dependsNonCBD(t *testing.T) {
if diags . HasErrors ( ) {
t . Fatalf ( "diags: %s" , diags . Err ( ) )
} else {
t . Log f ( legacyDiffComparisonString ( plan . Changes ) )
t . Log ( legacyDiffComparisonString ( plan . Changes ) )
}
state , diags = ctx . Apply ( plan , m , nil )
@ -1151,7 +1151,7 @@ func TestContext2Apply_createBeforeDestroy_hook(t *testing.T) {
if diags . HasErrors ( ) {
t . Fatalf ( "diags: %s" , diags . Err ( ) )
} else {
t . Log f ( legacyDiffComparisonString ( plan . Changes ) )
t . Log ( legacyDiffComparisonString ( plan . Changes ) )
}
if _ , diags := ctx . Apply ( plan , m , nil ) ; diags . HasErrors ( ) {
@ -1227,7 +1227,7 @@ func TestContext2Apply_createBeforeDestroy_deposedCount(t *testing.T) {
if diags . HasErrors ( ) {
t . Fatalf ( "diags: %s" , diags . Err ( ) )
} else {
t . Log f ( legacyDiffComparisonString ( plan . Changes ) )
t . Log ( legacyDiffComparisonString ( plan . Changes ) )
}
state , diags = ctx . Apply ( plan , m , nil )
@ -1287,7 +1287,7 @@ func TestContext2Apply_createBeforeDestroy_deposedOnly(t *testing.T) {
if diags . HasErrors ( ) {
t . Fatalf ( "diags: %s" , diags . Err ( ) )
} else {
t . Log f ( legacyDiffComparisonString ( plan . Changes ) )
t . Log ( legacyDiffComparisonString ( plan . Changes ) )
}
state , diags = ctx . Apply ( plan , m , nil )
@ -1619,7 +1619,7 @@ func TestContext2Apply_dataBasic(t *testing.T) {
if diags . HasErrors ( ) {
t . Fatalf ( "diags: %s" , diags . Err ( ) )
} else {
t . Log f ( legacyDiffComparisonString ( plan . Changes ) )
t . Log ( legacyDiffComparisonString ( plan . Changes ) )
}
state , diags := ctx . Apply ( plan , m , nil )
@ -1674,7 +1674,7 @@ func TestContext2Apply_destroyData(t *testing.T) {
if diags . HasErrors ( ) {
t . Fatalf ( "diags: %s" , diags . Err ( ) )
} else {
t . Log f ( legacyDiffComparisonString ( plan . Changes ) )
t . Log ( legacyDiffComparisonString ( plan . Changes ) )
}
newState , diags := ctx . Apply ( plan , m , nil )
@ -1739,7 +1739,7 @@ func TestContext2Apply_destroySkipsCBD(t *testing.T) {
if diags . HasErrors ( ) {
t . Fatalf ( "diags: %s" , diags . Err ( ) )
} else {
t . Log f ( legacyDiffComparisonString ( plan . Changes ) )
t . Log ( legacyDiffComparisonString ( plan . Changes ) )
}
if _ , diags := ctx . Apply ( plan , m , nil ) ; diags . HasErrors ( ) {
@ -3742,7 +3742,7 @@ func TestContext2Apply_multiVarComprehensive(t *testing.T) {
t . Run ( "config for " + key , func ( t * testing . T ) {
for _ , problem := range deep . Equal ( got , want ) {
t . Error f ( problem )
t . Error ( problem )
}
} )
}
@ -8333,7 +8333,7 @@ func TestContext2Apply_ignoreChangesCreate(t *testing.T) {
if diags . HasErrors ( ) {
t . Fatalf ( "diags: %s" , diags . Err ( ) )
} else {
t . Log f ( legacyDiffComparisonString ( plan . Changes ) )
t . Log ( legacyDiffComparisonString ( plan . Changes ) )
}
state , diags := ctx . Apply ( plan , m , nil )
@ -8475,7 +8475,7 @@ func TestContext2Apply_ignoreChangesAll(t *testing.T) {
logDiagnostics ( t , diags )
t . Fatal ( "plan failed" )
} else {
t . Log f ( legacyDiffComparisonString ( plan . Changes ) )
t . Log ( legacyDiffComparisonString ( plan . Changes ) )
}
state , diags := ctx . Apply ( plan , m , nil )
@ -12646,7 +12646,7 @@ func TestContext2Apply_dataSensitive(t *testing.T) {
if diags . HasErrors ( ) {
t . Fatalf ( "diags: %s" , diags . Err ( ) )
} else {
t . Log f ( legacyDiffComparisonString ( plan . Changes ) )
t . Log ( legacyDiffComparisonString ( plan . Changes ) )
}
state , diags := ctx . Apply ( plan , m , nil )