cli/request: support passing instance parameters from a file
Support a syntax like: slapos request \ --node=computer_guid=local \ --parameters-file=~/request.json \ ERP5 \ https://lab.nexedi.com/nexedi/slapos/raw/1.0.145/software/erp5/software.cfg to request an instance with parameters in ~/request.json file. This also teach slapos.core about the instance schema, which makes it possible to understand the serialisation, so that we no longer need to use `_ = json.dump(params)` to encode parameters. This also emits a warning when requesting with parameters which do not match the schema. See merge request !215
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
External | |||||||||
passed |
#285453
external
|
SlapOS-Master.UnitTest-Master |
03:56:00
|
||||||
failed |
#285524
external
|
SlapOS.Eggs.UnitTest-Master.Python2 |
01:09:41
|
||||||
passed |
#285966
external
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:16:45
|
||||||
passed |
#285460
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:13:05
|
||||||
passed |
#285475
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:13:37
|
||||||
passed |
#285723
external
retried
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:15:06
|
||||||