Skip to content

Commit

Permalink
chore: re-gen after 'custom_properties' change
Browse files Browse the repository at this point in the history
  • Loading branch information
padamstx committed Jun 4, 2020
1 parent 5187e76 commit f348bb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resourcecontrollerv2/resource_controller_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -2617,7 +2617,7 @@ type Reclamation struct {
TargetTime *string `json:"target_time,omitempty"`

// The custom properties of the reclamation.
CustomProperties *string `json:"custom_properties,omitempty"`
CustomProperties map[string]interface{} `json:"custom_properties,omitempty"`

// The date when the reclamation was created.
CreatedAt *strfmt.DateTime `json:"created_at,omitempty"`
Expand Down
4 changes: 2 additions & 2 deletions resourcecontrollerv2/resource_controller_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3177,7 +3177,7 @@ var _ = Describe(`ResourceControllerV2`, func() {

res.Header().Set("Content-type", "application/json")
res.WriteHeader(200)
fmt.Fprintf(res, `{"resources": [{"id": "ID", "entity_id": "EntityID", "entity_type_id": "EntityTypeID", "entity_crn": "EntityCrn", "resource_instance_id": "anyValue", "resource_group_id": "ResourceGroupID", "account_id": "AccountID", "policy_id": "PolicyID", "state": "State", "target_time": "TargetTime", "custom_properties": "CustomProperties", "created_at": "2019-01-01T12:00:00", "created_by": "CreatedBy", "updated_at": "2019-01-01T12:00:00", "updated_by": "UpdatedBy"}]}`)
fmt.Fprintf(res, `{"resources": [{"id": "ID", "entity_id": "EntityID", "entity_type_id": "EntityTypeID", "entity_crn": "EntityCrn", "resource_instance_id": "anyValue", "resource_group_id": "ResourceGroupID", "account_id": "AccountID", "policy_id": "PolicyID", "state": "State", "target_time": "TargetTime", "custom_properties": {"mapKey": "anyValue"}, "created_at": "2019-01-01T12:00:00", "created_by": "CreatedBy", "updated_at": "2019-01-01T12:00:00", "updated_by": "UpdatedBy"}]}`)
}))
})
It(`Invoke ListReclamations successfully`, func() {
Expand Down Expand Up @@ -3287,7 +3287,7 @@ var _ = Describe(`ResourceControllerV2`, func() {
Expect(req.Method).To(Equal("POST"))
res.Header().Set("Content-type", "application/json")
res.WriteHeader(200)
fmt.Fprintf(res, `{"id": "ID", "entity_id": "EntityID", "entity_type_id": "EntityTypeID", "entity_crn": "EntityCrn", "resource_instance_id": "anyValue", "resource_group_id": "ResourceGroupID", "account_id": "AccountID", "policy_id": "PolicyID", "state": "State", "target_time": "TargetTime", "custom_properties": "CustomProperties", "created_at": "2019-01-01T12:00:00", "created_by": "CreatedBy", "updated_at": "2019-01-01T12:00:00", "updated_by": "UpdatedBy"}`)
fmt.Fprintf(res, `{"id": "ID", "entity_id": "EntityID", "entity_type_id": "EntityTypeID", "entity_crn": "EntityCrn", "resource_instance_id": "anyValue", "resource_group_id": "ResourceGroupID", "account_id": "AccountID", "policy_id": "PolicyID", "state": "State", "target_time": "TargetTime", "custom_properties": {"mapKey": "anyValue"}, "created_at": "2019-01-01T12:00:00", "created_by": "CreatedBy", "updated_at": "2019-01-01T12:00:00", "updated_by": "UpdatedBy"}`)
}))
})
It(`Invoke RunReclamationAction successfully`, func() {
Expand Down

0 comments on commit f348bb8

Please sign in to comment.