Skip to content

Commit

Permalink
example/test: Test valid member names
Browse files Browse the repository at this point in the history
Signed-off-by: Wesley Hershberger <[email protected]>
  • Loading branch information
MggMuggins committed Apr 19, 2024
1 parent 6352503 commit 4aae4c3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions example/test/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,15 @@ for member in "${members[@]}"; do
microctl --state-dir "${state_dir}" waitready
done

# Ensure only valid member names are used
! microctl --state-dir "${test_dir}/c1" init "c/1" 127.0.0.1:9001 --bootstrap

microctl --state-dir "${test_dir}/c1" init "c1" 127.0.0.1:9001 --bootstrap

# Ensure only valid member names are used
token_node2=$(microctl --state-dir "${test_dir}/c1" tokens add "c/2")
! microctl --state-dir "${test_dir}/c1" init "c/2" 127.0.0.1:9003 --token "${token_node2}"

token_node2=$(microctl --state-dir "${test_dir}/c1" tokens add "c2")
token_node3=$(microctl --state-dir "${test_dir}/c1" tokens add "c3")

Expand Down

0 comments on commit 4aae4c3

Please sign in to comment.