mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
initwd: cache registry responses for module versions and download URL (#23727)
* initwd: cache registry responses for module versions and download URL Closes #23544
This commit is contained in:
@@ -327,6 +327,14 @@ func TestLoaderInstallModules_registry(t *testing.T) {
|
||||
return
|
||||
}
|
||||
|
||||
//check that the registry reponses were cached
|
||||
if _, ok := inst.moduleVersions["hashicorp/module-installer-acctest/aws"]; !ok {
|
||||
t.Fatal("module versions cache was not populated")
|
||||
}
|
||||
if _, ok := inst.moduleVersionsUrl[moduleVersion{module: "hashicorp/module-installer-acctest/aws", version: "0.0.1"}]; !ok {
|
||||
t.Fatal("module download url cache was not populated")
|
||||
}
|
||||
|
||||
loader, err := configload.NewLoader(&configload.Config{
|
||||
ModulesDir: modulesDir,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user