mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-09 16:50:08 -04:00
unit test cases
This commit is contained in:
parent
9728d4f947
commit
78aaaa5be8
1 changed files with 1 additions and 4 deletions
|
|
@ -332,9 +332,7 @@ func (g *Getter) GetOfficialRelease(what string, opts plugingetter.GetOptions) (
|
|||
}
|
||||
|
||||
var req *http.Request
|
||||
transform := func(in io.ReadCloser) (io.ReadCloser, error) {
|
||||
return in, nil
|
||||
}
|
||||
transform := transformZipStream()
|
||||
|
||||
switch what {
|
||||
case "releases":
|
||||
|
|
@ -350,7 +348,6 @@ func (g *Getter) GetOfficialRelease(what string, opts plugingetter.GetOptions) (
|
|||
// https://releases.hashicorp.com/terraform-provider-akamai/8.0.0/terraform-provider-akamai_8.0.0_darwin_arm64.zip
|
||||
url := filepath.ToSlash("https://releases.hashicorp.com/" + ghURI.PluginType() + "/" + opts.VersionString() + "/" + opts.ExpectedZipFilename())
|
||||
req, err = http.NewRequest("GET", url, nil)
|
||||
transform = transformZipStream()
|
||||
default:
|
||||
return nil, fmt.Errorf("%q not implemented", what)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue