Skip to content

Commit

Permalink
tests: fix GPG integration tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ctrombley committed Oct 25, 2024
1 parent b7d17f2 commit 2ba6443
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions gpg_key_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import (
)

func TestGPGKeyList(t *testing.T) {
t.Skip()

client := testClient(t)
ctx := context.Background()

Expand All @@ -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)

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 2ba6443

Please sign in to comment.