Skip to content

Commit bb53f8c

Browse files
test(etcd): use canonical etcd example member ID in move-leader test
Replace the member ID copied from a live test-cluster repro with etcd's documentation example ID; public repo, placeholders only.
1 parent 9b59b3e commit bb53f8c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

k8s/remove_member_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func TestBuildRemoveEtcdMemberCmd_DistinctInputs(t *testing.T) {
6060
// a wrong endpoint or a swapped transferee silently fails the transfer and the
6161
// subsequent leader-removal would orphan the member, so pin the exact shape.
6262
func TestBuildMoveLeaderArgs(t *testing.T) {
63-
args := buildMoveLeaderArgs("https://10.0.0.1:2379", "a8208c4dee07b533")
63+
args := buildMoveLeaderArgs("https://10.0.0.1:2379", "8e9e05c52164694d")
6464
joined := strings.Join(args, " ")
6565

6666
mustContain := []string{
@@ -69,7 +69,7 @@ func TestBuildMoveLeaderArgs(t *testing.T) {
6969
"--cert=/etc/kubernetes/pki/etcd/peer.crt",
7070
"--key=/etc/kubernetes/pki/etcd/peer.key",
7171
"move-leader",
72-
"a8208c4dee07b533",
72+
"8e9e05c52164694d",
7373
}
7474
for _, sub := range mustContain {
7575
if !strings.Contains(joined, sub) {
@@ -79,7 +79,7 @@ func TestBuildMoveLeaderArgs(t *testing.T) {
7979

8080
// The transferee ID must be the last arg (the move-leader target), and the
8181
// subcommand must immediately precede it.
82-
if got := args[len(args)-1]; got != "a8208c4dee07b533" {
82+
if got := args[len(args)-1]; got != "8e9e05c52164694d" {
8383
t.Errorf("expected transferee ID as the last arg, got %q (full: %s)", got, joined)
8484
}
8585
if got := args[len(args)-2]; got != "move-leader" {

0 commit comments

Comments
 (0)