|
@@ 1483-1494 (lines=12) @@
|
| 1480 |
|
status, reply = connect.set_config("wal", "child_key", 256) |
| 1481 |
|
assert not status.OK() |
| 1482 |
|
|
| 1483 |
|
def test_set_enable_valid(self, connect, collection): |
| 1484 |
|
''' |
| 1485 |
|
target: set enable |
| 1486 |
|
method: call set_config correctly |
| 1487 |
|
expected: status ok, set successfully |
| 1488 |
|
''' |
| 1489 |
|
for valid_enable in ["Off", "false", 0, "no", "On", "true", "1", "YES"]: |
| 1490 |
|
status, reply = connect.set_config("wal", "enable", valid_enable) |
| 1491 |
|
assert status.OK() |
| 1492 |
|
status, config_value = connect.get_config("wal", "enable") |
| 1493 |
|
assert status.OK() |
| 1494 |
|
assert config_value == str(valid_enable) |
| 1495 |
|
|
| 1496 |
|
def test_set_recovery_error_ignore_valid(self, connect, collection): |
| 1497 |
|
''' |
|
@@ 1255-1266 (lines=12) @@
|
| 1252 |
|
status, reply = connect.set_config("metric", "child_key", 19530) |
| 1253 |
|
assert not status.OK() |
| 1254 |
|
|
| 1255 |
|
def test_set_enable_valid(self, connect, collection): |
| 1256 |
|
''' |
| 1257 |
|
target: set enable |
| 1258 |
|
method: call set_config correctly |
| 1259 |
|
expected: status ok, set successfully |
| 1260 |
|
''' |
| 1261 |
|
for valid_enable in ["Off", "false", 0, "yes", "On", "true", "1", "NO"]: |
| 1262 |
|
status, reply = connect.set_config("metric", "enable", valid_enable) |
| 1263 |
|
assert status.OK() |
| 1264 |
|
status, config_value = connect.get_config("metric", "enable") |
| 1265 |
|
assert status.OK() |
| 1266 |
|
assert config_value == str(valid_enable) |
| 1267 |
|
|
| 1268 |
|
@pytest.mark.timeout(CONFIG_TIMEOUT) |
| 1269 |
|
def test_set_address_valid(self, connect, collection): |