|
1 |
| -// Copyright (C) 2017-2024 Internet Systems Consortium, Inc. ("ISC") |
| 1 | +// Copyright (C) 2017-2025 Internet Systems Consortium, Inc. ("ISC") |
2 | 2 | //
|
3 | 3 | // This Source Code Form is subject to the terms of the Mozilla Public
|
4 | 4 | // License, v. 2.0. If a copy of the MPL was not distributed with this
|
@@ -544,19 +544,20 @@ void Lease4CmdsTest::testLease4AddBadParams() {
|
544 | 544 | exp_rsp = "Non-IPv4 address specified: 2001:db8:1::1";
|
545 | 545 | testCommand(txt, CONTROL_RESULT_ERROR, exp_rsp);
|
546 | 546 |
|
547 |
| - // Invalid state: the only supported values are 0,1,2. |
| 547 | + // Invalid state: the only supported values are 0,1,2,3,4. |
548 | 548 | txt =
|
549 | 549 | "{\n"
|
550 | 550 | " \"command\": \"lease4-add\",\n"
|
551 | 551 | " \"arguments\": {"
|
552 | 552 | " \"subnet-id\": 44,\n"
|
553 | 553 | " \"ip-address\": \"192.0.2.1\",\n"
|
554 | 554 | " \"hw-address\": \"1a:1b:1c:1d:1e:1f\",\n"
|
555 |
| - " \"state\": 4\n" |
| 555 | + " \"state\": 5\n" |
556 | 556 | " }\n"
|
557 | 557 | "}";
|
558 |
| - exp_rsp = "Invalid state value: 4, supported values are: 0 (default), 1 " |
559 |
| - "(declined), 2 (expired-reclaimed) and 3 (released)"; |
| 558 | + exp_rsp = "Invalid state value: 5, supported values are: 0 (default), 1 " |
| 559 | + "(declined), 2 (expired-reclaimed), 3 (released)" |
| 560 | + " and 4 (registered)"; |
560 | 561 | testCommand(txt, CONTROL_RESULT_ERROR, exp_rsp);
|
561 | 562 |
|
562 | 563 | // Bad user context: not a map.
|
|
0 commit comments