Validations: One More Thing©
So we talked about new things in Validations right? Well. There’s one more thing that will make life easier for everyone, and allow to get a nice job in the CI :).
We are able to override validation parameters. In a really convenient way.
For instance, let’s say you want to just test a validation, on a small undercloud node - say 2 CPU cores, and 16G of RAM.
The default values for the involved validations are 8 cores and 24G of RAM. This means, of course, that your run will fail. But, if you want it to pass for some reasons, you just need to push the right parameters, either directly in the CLI, or in a JSON or YAML file. So easy!
Using the CLI, you will call:
This will produce the wanted output:
Did I already say it was easy?
And, if you’d rather get a plain file because you have a ton of variable to override, or just because you don’t like JSON, just push a YAML file, for instance:
And run the CLI with:
Note: if you want to use Mistral (--use-mistral
), you will need to use
a JSON file anyway. And, for now, launching a validation group
(--group
) also needs Mistral, so you will also need a JSON file.
Here’s a small asciinema with the custom file in use:
And… That’s it!