Skip to content

Commit

Permalink
bring up checks in 06-agent
Browse files Browse the repository at this point in the history
they didn't seem to need to be removed

Signed-off-by: Sorin Dumitru <sdumitru@bloomberg.net>
  • Loading branch information
sorindumitru committed May 10, 2024
1 parent 6f495f6 commit 3a50920
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/integration/suites/spire-server-cli/06-agent
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@ docker-compose exec -T spire-server \
docker-compose exec -T spire-server \
/opt/spire/bin/spire-server agent evict -spiffeID "$agentID1" | grep "Agent evicted successfully" || fail-now "failed to evict agent 1"

# Verify agent list after evict
docker-compose exec -T spire-server \
/opt/spire/bin/spire-server agent list | grep "Found 2 attested agents" || fail-now "failed to list the agents after evict"

# Verify agent show after evict
# Agent 1
echo "$(docker-compose exec -T spire-server \
/opt/spire/bin/spire-server agent show -spiffeID $agentID1 || echo "OK: agent 1 not found")" \
| grep "OK: agent 1 not found" || fail-now "agent 1 was found after evict"

# Agent 2
showResult="$(docker-compose exec -T spire-server \
/opt/spire/bin/spire-server agent show -spiffeID $agentID2)"
Expand Down

0 comments on commit 3a50920

Please sign in to comment.