Skip to content

Commit

Permalink
Java Auth Callout Example - more spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
scottf committed Jan 9, 2024
1 parent 90689cf commit a3eb9d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/auth/callout/java/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,21 @@ sleep 2

# Users sys, alice and bob are known to the example code
# Confirm alice can connect and publish.
echo 'Test alice'
echo -e '\n\n--------------------------------------------------\nTest alice'
nats --user alice --password alice pub test 'hello from alice'

# Confirm bob cannot publish to a subject they are not allowed to.
echo 'Test bob on denied subject'
echo -e '\n\n--------------------------------------------------\nTest bob on denied subject'
nats --user bob --password bob pub test 'hello from bob' || true

# Confirm bob can connect and publish to a subject they are allowed to.
echo 'Test bob on allowed subject'
echo -e '\n\n--------------------------------------------------\nTest bob on allowed subject'
nats --user bob --password bob pub bob.test 'hello from bob'

# Confirm an unknown user cannot connect.
echo 'Test unknown user'
echo -e '\n\n--------------------------------------------------\nTest unknown user'
nats --user pam --password pam pub test 'hello from pam' || true

# Confirm the system account user has the expected system permission.
echo 'Test system account user'
echo -e '\n\n--------------------------------------------------\nTest system account user'
nats --user sys --password sys server list

1 comment on commit a3eb9d7

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for nats-by-example ready!

✅ Preview
https://nats-by-example-cbswsbnrd-connecteverything.vercel.app

Built with commit a3eb9d7.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.