From 22885be660182ab4099606842d1cca398cce8a4e Mon Sep 17 00:00:00 2001 From: Sebastian Rivera Date: Wed, 7 Dec 2022 12:57:53 -0500 Subject: [PATCH] Fix invalid registry platform os/arch used in tests --- helper_test.go | 4 +-- ...stry_provider_platform_integration_test.go | 26 +++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/helper_test.go b/helper_test.go index 028699a84..215a11588 100644 --- a/helper_test.go +++ b/helper_test.go @@ -1411,8 +1411,8 @@ func createRegistryProviderPlatform(t *testing.T, client *Client, provider *Regi ctx := context.Background() options := RegistryProviderPlatformCreateOptions{ - OS: randomString(t), - Arch: randomString(t), + OS: "linux", + Arch: "amd64", Shasum: genSha(t), Filename: randomString(t), } diff --git a/registry_provider_platform_integration_test.go b/registry_provider_platform_integration_test.go index 0aa2f6ad9..8275bf845 100644 --- a/registry_provider_platform_integration_test.go +++ b/registry_provider_platform_integration_test.go @@ -31,8 +31,8 @@ func TestRegistryProviderPlatformsCreate(t *testing.T) { t.Run("with valid options", func(t *testing.T) { options := RegistryProviderPlatformCreateOptions{ - OS: "foo", - Arch: "scrimbles", + OS: "linux", + Arch: "amd64", Shasum: "shasum", Filename: "filename", } @@ -62,7 +62,7 @@ func TestRegistryProviderPlatformsCreate(t *testing.T) { t.Run("without an OS", func(t *testing.T) { options := RegistryProviderPlatformCreateOptions{ OS: "", - Arch: "scrimbles", + Arch: "amd64", Shasum: "shasum", Filename: "filename", } @@ -89,8 +89,8 @@ func TestRegistryProviderPlatformsCreate(t *testing.T) { t.Run("without a shasum", func(t *testing.T) { options := RegistryProviderPlatformCreateOptions{ - OS: "os", - Arch: "scrimbles", + OS: "linux", + Arch: "amd64", Shasum: "", Filename: "filename", } @@ -103,8 +103,8 @@ func TestRegistryProviderPlatformsCreate(t *testing.T) { t.Run("without a filename", func(t *testing.T) { options := RegistryProviderPlatformCreateOptions{ - OS: "os", - Arch: "scrimbles", + OS: "linux", + Arch: "amd64", Shasum: "shasum", Filename: "", } @@ -117,8 +117,8 @@ func TestRegistryProviderPlatformsCreate(t *testing.T) { t.Run("with a public provider", func(t *testing.T) { options := RegistryProviderPlatformCreateOptions{ - OS: "os", - Arch: "scrimbles", + OS: "linux", + Arch: "amd64", Shasum: "shasum", Filename: "filename", } @@ -140,8 +140,8 @@ func TestRegistryProviderPlatformsCreate(t *testing.T) { t.Run("without a valid registry provider version id", func(t *testing.T) { options := RegistryProviderPlatformCreateOptions{ - OS: "os", - Arch: "scrimbles", + OS: "linux", + Arch: "amd64", Shasum: "shasum", Filename: "filename", } @@ -199,8 +199,8 @@ func TestRegistryProviderPlatformsDelete(t *testing.T) { t.Run("with a non-existent version", func(t *testing.T) { platformID := RegistryProviderPlatformID{ RegistryProviderVersionID: versionID, - OS: "nope", - Arch: "no", + OS: "linux", + Arch: "amd64", } err := client.RegistryProviderPlatforms.Delete(ctx, platformID)