commit db7144f1cf83176266c6dbed89f01fd738df10bf
Author: Victor Romano <email address hidden>
Date: Tue Feb 7 12:56:14 2023 -0300
Warn about invalid date when collecting logs
If the user entered an invalid start-date, invalid end-date and/or
the start-date is greater than the end-date during the collect logs
process, the system will warn the user about the error, instead of
just reverting to collect all.
Test plan:
PASS - Install and bootstrap SX and test if the warnings are
presented if an invalid start-date, end-date and/or date range
are passed by the user, as well as collecting logs if correct
parameters are provided.
PASS - Install and bootstrap Standard and test if the warnings are
presented if an invalid start-date, end-date and/or date range
are passed by the user, as well as collecting logs if correct
parameters are provided.
Test with correct parameters:
PASS: collect --start-date any --end-date any
PASS: collect
PASS: collect --all
PASS: collect --list controller-0 controller-1
PASS: collect controller-0 controller-1
PASS: collect --all --subcloud
Closes-bug: 2003791
Signed-off-by: Victor Romano <email address hidden>
Change-Id: Iab872d2cbf02e1e6b6feef931375d05345c844e8
Reviewed: https:/ /review. opendev. org/c/starlingx /utilities/ +/872978 /opendev. org/starlingx/ utilities/ commit/ db7144f1cf83176 266c6dbed89f01f d738df10bf
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit db7144f1cf83176 266c6dbed89f01f d738df10bf
Author: Victor Romano <email address hidden>
Date: Tue Feb 7 12:56:14 2023 -0300
Warn about invalid date when collecting logs
If the user entered an invalid start-date, invalid end-date and/or
the start-date is greater than the end-date during the collect logs
process, the system will warn the user about the error, instead of
just reverting to collect all.
Test plan:
PASS - Install and bootstrap SX and test if the warnings are
presented if an invalid start-date, end-date and/or date range
are passed by the user, as well as collecting logs if correct
parameters are provided.
PASS - Install and bootstrap Standard and test if the warnings are
presented if an invalid start-date, end-date and/or date range
are passed by the user, as well as collecting logs if correct
parameters are provided.
Test with correct parameters:
PASS: collect --start-date any --end-date any
PASS: collect
PASS: collect --all
PASS: collect --list controller-0 controller-1
PASS: collect controller-0 controller-1
PASS: collect --all --subcloud
Closes-bug: 2003791
Signed-off-by: Victor Romano <email address hidden> e6b6feef931375d 05345c844e8
Change-Id: Iab872d2cbf02e1