Skip to content

Commit

Permalink
Update go-client version which include fix for OCi registry update
Browse files Browse the repository at this point in the history
  • Loading branch information
denys-octopus committed Oct 20, 2024
1 parent bc92e95 commit 23eeba2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/OctopusDeploy/terraform-provider-octopusdeploy
go 1.21

require (
github.com/OctopusDeploy/go-octopusdeploy/v2 v2.53.0
github.com/OctopusDeploy/go-octopusdeploy/v2 v2.53.1
github.com/OctopusSolutionsEngineering/OctopusTerraformTestFramework v0.0.0-20240729041805-46db6fb717b4
github.com/google/uuid v1.6.0
github.com/hashicorp/go-cty v1.4.1-0.20200723130312-85980079f637
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ github.com/Microsoft/hcsshim v0.12.4 h1:Ev7YUMHAHoWNm+aDSPzc5W9s6E2jyL1szpVDJeZ/
github.com/Microsoft/hcsshim v0.12.4/go.mod h1:Iyl1WVpZzr+UkzjekHZbV8o5Z9ZkxNGx6CtY2Qg/JVQ=
github.com/OctopusDeploy/go-octodiff v1.0.0 h1:U+ORg6azniwwYo+O44giOw6TiD5USk8S4VDhOQ0Ven0=
github.com/OctopusDeploy/go-octodiff v1.0.0/go.mod h1:Mze0+EkOWTgTmi8++fyUc6r0aLZT7qD9gX+31t8MmIU=
github.com/OctopusDeploy/go-octopusdeploy/v2 v2.53.0 h1:ZATcfMDW8ilgb2xZ892SqUOtfqHjei0JkQGT68HvoII=
github.com/OctopusDeploy/go-octopusdeploy/v2 v2.53.0/go.mod h1:ggvOXzMnq+w0pLg6C9zdjz6YBaHfO3B3tqmmB7JQdaw=
github.com/OctopusDeploy/go-octopusdeploy/v2 v2.53.1 h1:9c5qKji5R/sFmjqVQ1Nxt+vKITsj42CCCs0bfqJvETc=
github.com/OctopusDeploy/go-octopusdeploy/v2 v2.53.1/go.mod h1:ggvOXzMnq+w0pLg6C9zdjz6YBaHfO3B3tqmmB7JQdaw=
github.com/OctopusSolutionsEngineering/OctopusTerraformTestFramework v0.0.0-20240729041805-46db6fb717b4 h1:QfbVf0bOIRMp/WHAWsuVDB7KHoWnRsGbvDuOf2ua7k4=
github.com/OctopusSolutionsEngineering/OctopusTerraformTestFramework v0.0.0-20240729041805-46db6fb717b4/go.mod h1:Oq9KbiRNDBB5jFmrwnrgLX0urIqR/1ptY18TzkqXm7M=
github.com/ProtonMail/go-crypto v1.1.0-alpha.2 h1:bkyFVUP+ROOARdgCiJzNQo2V2kiB97LyUpzH9P6Hrlg=
Expand Down
2 changes: 1 addition & 1 deletion octopusdeploy_framework/resource_oci_registry_feed.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (r *ociRegistryFeedTypeResource) Update(ctx context.Context, req resource.U
client := r.Config.Client
updatedFeed, err := feeds.Update(client, feed)
if err != nil {
resp.Diagnostics.AddError("unable to update maven feed", err.Error())
resp.Diagnostics.AddError("unable to update OCI Registry feed", err.Error())
return
}

Expand Down
3 changes: 3 additions & 0 deletions octopusdeploy_framework/resource_oci_registry_feed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ func testOCIRegistryFeedBasic(data ociRegistryFeedTestData, localName string) st

func testOCIRegistryFeedBasicUpdate(data ociRegistryFeedTestData, localName string) string {
data.name = data.name + "-updated"
data.uri = "oci://integration-test-registry-updated.docker.io"
data.username = data.username + "-changed"
data.password = data.password + "-generated"

return testOCIRegistryFeedBasic(data, localName)
}
Expand Down

0 comments on commit 23eeba2

Please sign in to comment.