mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-26 17:01:04 -06:00
undo taint test changes
This commit is contained in:
parent
00cc1ea26d
commit
40263cd861
@ -434,7 +434,6 @@ func (m *Meta) backendMigrateState_s_s(opts *backendMigrateOpts) error {
|
||||
// includes preserving any lineage/serial information where possible, if
|
||||
// both managers support such metadata.
|
||||
log.Print("[TRACE] backendMigrateState: migration confirmed, so migrating")
|
||||
|
||||
if err := statemgr.Migrate(destinationState, sourceState); err != nil {
|
||||
return fmt.Errorf(strings.TrimSpace(errBackendStateCopy),
|
||||
opts.SourceType, opts.DestinationType, err)
|
||||
|
@ -1,8 +1,8 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"os"
|
||||
"regexp"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
@ -381,13 +381,8 @@ Resource instance test_instance.bar was not found, but this is not an error
|
||||
because -allow-missing was set.
|
||||
|
||||
`)
|
||||
re, err := regexp.Compile(expected)
|
||||
if err != nil {
|
||||
t.Fatalf("Error compiling regexp: %s", err)
|
||||
}
|
||||
|
||||
if !re.MatchString(actual) {
|
||||
t.Fatalf("wrong output\n expected: %s \n actual: %s", expected, actual)
|
||||
if diff := cmp.Diff(expected, actual); diff != "" {
|
||||
t.Fatalf("wrong output\n%s", diff)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user