mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
Signed-off-by: Janos Bonic <86970079+janosdebugs@users.noreply.github.com> Signed-off-by: Christian Mesh <christianmesh1@gmail.com> Co-authored-by: Christian Mesh <christianmesh1@gmail.com>
This commit is contained in:
@@ -333,7 +333,7 @@ func TestImport_initializationErrorShouldUnlock(t *testing.T) {
|
||||
|
||||
// specifically, it should fail due to a missing provider
|
||||
msg := strings.ReplaceAll(ui.ErrorWriter.String(), "\n", " ")
|
||||
if want := `provider registry.opentofu.org/hashicorp/unknown: required by this configuration but no version is selected`; !strings.Contains(msg, want) {
|
||||
if want := `provider registry.opentofu.org/opentofu/unknown: required by this configuration but no version is selected`; !strings.Contains(msg, want) {
|
||||
t.Errorf("incorrect message\nwant substring: %s\ngot:\n%s", want, msg)
|
||||
}
|
||||
|
||||
@@ -978,5 +978,5 @@ func TestImport_targetIsModule(t *testing.T) {
|
||||
const testImportStr = `
|
||||
test_instance.foo:
|
||||
ID = yay
|
||||
provider = provider["registry.opentofu.org/hashicorp/test"]
|
||||
provider = provider["registry.opentofu.org/opentofu/test"]
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user