237.7.586
|
|
|
Teddy Hogeborn |
5 years ago
|
|
|
237.7.585
|
|
|
Teddy Hogeborn |
5 years ago
|
|
|
237.7.584
|
|
|
Teddy Hogeborn |
5 years ago
|
|
|
237.7.583
|
|
mandos-ctl: Refactor; move parsing of intervals into argument parsing
* mandos-ctl (MillisecondsValueArgumentMixIn.value_to_set): Assume that an incoming value is datetime.timedelta(), not a string. (add_command_line_options): Add "type=string_to_delta" to --timeout, --extended-timeout, --interval, --approval-delay, and --approval-duration. (TestSetTimeoutCmd, TestSetExtendedTimeoutCmd, TestSetIntervalCmd, TestSetApprovalDelayCmd, TestSetApprovalDurationCmd): Change values_to_set to be datetime.timedelta() values, and change to more appropriate values to test. Also adjust values_to_get accordingly.
|
Teddy Hogeborn |
5 years ago
|
|
|
237.7.582
|
|
|
Teddy Hogeborn |
5 years ago
|
|
|
237.7.581
|
|
|
Teddy Hogeborn |
5 years ago
|
|
|
237.7.580
|
|
|
Teddy Hogeborn |
5 years ago
|
|
|
237.7.579
|
|
|
Teddy Hogeborn |
5 years ago
|
|
|
237.7.578
|
|
|
Teddy Hogeborn |
5 years ago
|
|
|
237.7.577
|
|
|
Teddy Hogeborn |
5 years ago
|
|
|
237.7.576
|
|
|
Teddy Hogeborn |
5 years ago
|
|
|
237.7.575
|
|
|
Teddy Hogeborn |
5 years ago
|
|
|
237.7.574
|
|
|
Teddy Hogeborn |
5 years ago
|
|
|
237.7.573
|
|
|
Teddy Hogeborn |
5 years ago
|
|
|
237.7.572
|
|
mandos-ctl: Add more tests, including tests for all commands
* mandos-ctl (Test_string_to_delta.test_handles_basic_rfc3339): Add a few more test cases. (TestCmd.setUp.MockClient.Set, TestCmd.setUp.MockClient.Get): Don't append to self.calls, since nobody should use it to check for Set() or Get() calls; instead, the return value of Get() should be inspected, and the MockClient.attributes dict should be inspected after (implicitly) calling Set(). (Unique): New; stand-in for unittest.mock.sentinel. (TestPropertyCmd): New; abstract class testing PropertyCmd classes. (TestBumpTimeoutCmd, TestStartCheckerCmd, TestStopCheckerCmd, TestApproveByDefaultCmd, TestDenyByDefaultCmd): New. (TestValueArgumentPropertyCmd): New; abstract class for testing those PropertyCmd classes which also inherit from ValueArgumentMixIn. (TestSetCheckerCmd, TestSetHostCmd, TestSetSecretCmd, TestSetTimeoutCmd, TestSetExtendedTimeoutCmd, TestSetIntervalCmd, TestSetApprovalDelayCmd, TestSetApprovalDurationCmd): New.
|
Teddy Hogeborn |
5 years ago
|
|
|
237.7.571
|
|
|
Teddy Hogeborn |
5 years ago
|
|
|
237.7.570
|
|
|
Teddy Hogeborn |
5 years ago
|
|
|
237.7.569
|
|
|
Teddy Hogeborn |
5 years ago
|
|
|
237.7.568
|
|
|
Teddy Hogeborn |
5 years ago
|
|
|
237.7.567
|
|
|
Teddy Hogeborn |
5 years ago
|
|
|