Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions agent_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@ func TestAgentsRead(t *testing.T) {
assert.Equal(t, agent, k)
})

// NOTE!! Commenting out test to unblock PRs pending a fix in the API.
// Please re-enable once the API is fixed.
// t.Run("when the agent does not exist", func(t *testing.T) {
// k, err := client.Agents.Read(ctx, "nonexistent")
// assert.Nil(t, k)
// assert.Equal(t, err, ErrResourceNotFound)
// })
t.Run("when the agent does not exist", func(t *testing.T) {
k, err := client.Agents.Read(ctx, "nonexistent")
assert.Nil(t, k)
assert.Equal(t, err, ErrResourceNotFound)
})

t.Run("without a valid agent ID", func(t *testing.T) {
k, err := client.Agents.Read(ctx, badIdentifier)
Expand Down
Loading