From 6428b2bdbcb12a7701f302eaff521c483117b9c8 Mon Sep 17 00:00:00 2001 From: Austin Valle Date: Thu, 30 Apr 2026 16:07:32 -0400 Subject: [PATCH] add provider source back to success tests --- internal/command/init2_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/command/init2_test.go b/internal/command/init2_test.go index 3d1a045a21..6f8e91188a 100644 --- a/internal/command/init2_test.go +++ b/internal/command/init2_test.go @@ -187,6 +187,10 @@ func TestInit2_dynamicSourceSuccess(t *testing.T) { testCopyDir(t, testFixturePath(filepath.Join("dynamic-module-sources", tc.fixture)), td) t.Chdir(td) + providerSource := newMockProviderSource(t, map[string][]string{ + "hashicorp/test": {"1.0.0"}, + }) + ui := new(cli.MockUi) view, done := testView(t) c := &InitCommand{ @@ -194,6 +198,7 @@ func TestInit2_dynamicSourceSuccess(t *testing.T) { testingOverrides: metaOverridesForProvider(testProvider()), Ui: ui, View: view, + ProviderSource: providerSource, }, }