mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
fix IC tests in regard to ManagedBy statys field
This commit is contained in:
parent
c1896fe8e3
commit
2f6f942749
1 changed files with 4 additions and 4 deletions
|
@ -295,10 +295,10 @@ func TestUpdateICAsAdmin(t *testing.T) {
|
|||
// fake an IC update (create) message
|
||||
var update ICUpdate
|
||||
update.Status.State = "idle"
|
||||
update.Status.ManagedBy = newIC2.Manager
|
||||
update.Properties.Name = newIC2.Name
|
||||
update.Properties.Category = newIC2.Category
|
||||
update.Properties.Type = newIC2.Type
|
||||
update.Properties.ManagedBy = newIC2.Manager
|
||||
update.Properties.UUID = newIC2.UUID
|
||||
|
||||
payload, err := json.Marshal(update)
|
||||
|
@ -419,10 +419,10 @@ func TestDeleteICAsAdmin(t *testing.T) {
|
|||
// fake an IC update (create) message
|
||||
var update ICUpdate
|
||||
update.Status.State = "idle"
|
||||
update.Status.ManagedBy = newIC2.Manager
|
||||
update.Properties.Name = newIC2.Name
|
||||
update.Properties.Category = newIC2.Category
|
||||
update.Properties.Type = newIC2.Type
|
||||
update.Properties.ManagedBy = newIC2.Manager
|
||||
update.Properties.UUID = newIC2.UUID
|
||||
|
||||
payload, err := json.Marshal(update)
|
||||
|
@ -697,11 +697,11 @@ func TestCreateUpdateViaAMQPRecv(t *testing.T) {
|
|||
update.Properties.Category = newIC1.Category
|
||||
update.Properties.Type = newIC1.Type
|
||||
update.Status.Uptime = 1000.1
|
||||
update.Status.ManagedBy = newIC1.Manager
|
||||
update.Properties.WS_url = newIC1.WebsocketURL
|
||||
update.Properties.API_url = newIC1.APIURL
|
||||
update.Properties.Description = newIC1.Description
|
||||
update.Properties.Location = newIC1.Location
|
||||
update.Properties.ManagedBy = newIC1.Manager
|
||||
update.Properties.UUID = newIC1.UUID
|
||||
|
||||
payload, err = json.Marshal(update)
|
||||
|
@ -785,11 +785,11 @@ func TestDeleteICViaAMQPRecv(t *testing.T) {
|
|||
update.Properties.Category = newIC1.Category
|
||||
update.Properties.Type = newIC1.Type
|
||||
update.Status.Uptime = 500.544
|
||||
update.Status.ManagedBy = newIC1.Manager
|
||||
update.Properties.WS_url = newIC1.WebsocketURL
|
||||
update.Properties.API_url = newIC1.APIURL
|
||||
update.Properties.Description = newIC1.Description
|
||||
update.Properties.Location = newIC1.Location
|
||||
update.Properties.ManagedBy = newIC1.Manager
|
||||
update.Properties.UUID = newIC1.UUID
|
||||
|
||||
payload, err := json.Marshal(update)
|
||||
|
|
Loading…
Add table
Reference in a new issue