From 2ba64435003921ab11e6b36d00b980cfd671af19 Mon Sep 17 00:00:00 2001 From: Chris Trombley Date: Fri, 25 Oct 2024 11:21:01 -0700 Subject: [PATCH] tests: fix GPG integration tests The upgradeOrganizationSettings method does not appear to be working for these API endpoints, but it is also not needed. Removing the calls to it allowed these tests to succeed. --- gpg_key_integration_test.go | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/gpg_key_integration_test.go b/gpg_key_integration_test.go index 652304855..fa7d7f756 100644 --- a/gpg_key_integration_test.go +++ b/gpg_key_integration_test.go @@ -12,8 +12,6 @@ import ( ) func TestGPGKeyList(t *testing.T) { - t.Skip() - client := testClient(t) ctx := context.Background() @@ -23,9 +21,6 @@ func TestGPGKeyList(t *testing.T) { org2, org2Cleanup := createOrganization(t, client) t.Cleanup(org2Cleanup) - upgradeOrganizationSubscription(t, client, org1) - upgradeOrganizationSubscription(t, client, org2) - provider1, provider1Cleanup := createRegistryProvider(t, client, org1, PrivateRegistry) t.Cleanup(provider1Cleanup) @@ -99,16 +94,12 @@ func TestGPGKeyList(t *testing.T) { } func TestGPGKeyCreate(t *testing.T) { - t.Skip() - client := testClient(t) ctx := context.Background() org, orgCleanup := createOrganization(t, client) t.Cleanup(orgCleanup) - upgradeOrganizationSubscription(t, client, org) - provider, providerCleanup := createRegistryProvider(t, client, org, PrivateRegistry) t.Cleanup(providerCleanup) @@ -160,16 +151,12 @@ func TestGPGKeyCreate(t *testing.T) { } func TestGPGKeyRead(t *testing.T) { - t.Skip() - client := testClient(t) ctx := context.Background() org, orgCleanup := createOrganization(t, client) t.Cleanup(orgCleanup) - upgradeOrganizationSubscription(t, client, org) - provider, providerCleanup := createRegistryProvider(t, client, org, PrivateRegistry) t.Cleanup(providerCleanup) @@ -201,16 +188,12 @@ func TestGPGKeyRead(t *testing.T) { } func TestGPGKeyUpdate(t *testing.T) { - t.Skip() - client := testClient(t) ctx := context.Background() org, orgCleanup := createOrganization(t, client) t.Cleanup(orgCleanup) - upgradeOrganizationSubscription(t, client, org) - provider, providerCleanup := createRegistryProvider(t, client, org, PrivateRegistry) t.Cleanup(providerCleanup) @@ -266,16 +249,12 @@ func TestGPGKeyUpdate(t *testing.T) { } func TestGPGKeyDelete(t *testing.T) { - t.Skip() - client := testClient(t) ctx := context.Background() org, orgCleanup := createOrganization(t, client) t.Cleanup(orgCleanup) - upgradeOrganizationSubscription(t, client, org) - provider, providerCleanup := createRegistryProvider(t, client, org, PrivateRegistry) t.Cleanup(providerCleanup)