tests: update base tests for weldr-client

weldr-client returns different json structures than the original
composer-cli does. It is being replaced in RHEL-9 and these changes make
it possible to run the tests with both old composer-cli and
weldr-client.
This commit is contained in:
Jakub Rusz 2021-08-23 17:50:27 +02:00 committed by jrusz
parent ad41022f4a
commit 37b14facd3
2 changed files with 98 additions and 34 deletions

View file

@ -55,6 +55,11 @@ type BlueprintsChangesV0 struct {
Limit uint `json:"limit"`
Offset uint `json:"offset"`
}
// BlueprintsChangesV0Weldr is the response to /blueprints/changes/ request using weldr-client
type BlueprintsChangesV0Weldr struct {
Body BlueprintsChangesV0 `json:"body"`
}
type bpChange struct {
Changes []blueprint.Change `json:"changes"`
Name string `json:"name"`