diff --git a/spec/requests/transformation_mappings_spec.rb b/spec/requests/transformation_mappings_spec.rb index 3a86798454..13a986ab80 100644 --- a/spec/requests/transformation_mappings_spec.rb +++ b/spec/requests/transformation_mappings_spec.rb @@ -233,9 +233,9 @@ def href_slug(obj) post(api_transformation_mapping_url(nil, transformation_mapping), :params => request) expected = { - "valid_vms" => [a_hash_including("name" => vm.name, "id" => vm.id.to_s, "href" => a_string_including(api_vm_url(nil, vm)))], - "invalid_vms" => [a_hash_including("name" => "bad name")], - "conflict_vms" => [] + "valid" => [a_hash_including("name" => vm.name, "id" => vm.id.to_s, "status" => "ok", "reason" => "ok", "cluster" => source_ems.name)], + "invalid" => [a_hash_including("name" => "bad name")], + "conflicted" => [] } expect(response).to have_http_status(:ok) expect(response.parsed_body).to include(expected)