KeyValueAction previously allowed only one key=>value pair to be
supplied in the CLI per argument.
While the operator could supply multiple key=>value pairs by repeatedly
using the same argument it was unnecessarily verbose and tedious approach.
Similar behavior is implemented in the tripleoclient validator CLI
by the resulution to the rhbz#1959492 [0].
Tests were adjusted.
[0]https://bugzilla.redhat.com/show_bug.cgi?id=1959492:
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I28c40bb8156d73dd95af9641acaab3cce721be2d
Introduce validation config file.
The config default location of the config file will be stored
in /etc/validation.cfg
The variables precedence will be the following:
* user's cli args
* config file
* default interval values
Change-Id: I05c54a43bc0a03878793cca3f51e23f4a8b63a23
- redundant imports in test modules were removed
- reset color code management in test simplified
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Iac5e68286782c5c2fbc185650c0bdf915fe959ef
Condition simplified, new formatting mechanism
introduced in the existing code.
Test coverage for the module included.
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I5a7d22a8c58246c937eb1a15314476229dc66566
This review adds a CLI for the Validation Framework which will become
the only entry point to run the Validation Framework.
It will deprecate the tripleo_validatior.py CLI and the
validation.py script.
This patch uses python cliff library to provide nice helpers, shell
and output formats.
Change-Id: I66800ad51cc50f4eb37efabe85fb553dce008101