Skip to content

Commit

Permalink
Remove cache clear from org:info command
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcdawkins committed Oct 15, 2024
1 parent 47b809b commit 84c5f60
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/org_info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ func TestOrgInfo(t *testing.T) {

run := runnerWithAuth(t, apiServer.URL, authServer.URL)

// TODO disable the cache?
run("cc")

assert.Contains(t, run("org:info", "-o", "org-1", "--format", "csv"), `Property,Value
assert.Contains(t, run("org:info", "-o", "org-1", "--format", "csv", "--refresh"), `Property,Value
id,org-id-1
name,org-1
label,Org 1
Expand All @@ -43,8 +40,5 @@ capabilities,`)
assert.NoError(t, err)
assert.Contains(t, co, "Property label set to: New Label\n")

// TODO fix the legacy CLI to invalidate the cache when the org is updated: this cache clear step should not be needed
run("cc")

assert.Equal(t, "New Label\n", run("org:info", "-o", "org-1", "label"))
}

0 comments on commit 84c5f60

Please sign in to comment.