Skip to content

Commit

Permalink
Merge pull request #484 from bdunne/make_master_green_again
Browse files Browse the repository at this point in the history
Fix policy spec due to new validation

(cherry picked from commit 05945c4)
  • Loading branch information
gtanzillo authored and simaishi committed Oct 2, 2018
1 parent 2098e69 commit a22161e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/requests/policies_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def test_policy_profile_query(object, api_object_policy_profiles_url)
"description" => "sample policy",
"name" => "sample policy",
"mode" => "compliance",
"towhat" => "ManageIQ::Providers::Redhat::InfraManager",
"towhat" => "ExtManagementSystem",
"conditions_ids" => [conditions.first.id, conditions.second.id],
}
end
Expand All @@ -355,7 +355,7 @@ def test_policy_profile_query(object, api_object_policy_profiles_url)
post(api_policies_url, :params => sample_policy.merge!(miq_policy_contents))
policy = MiqPolicy.find(response.parsed_body["results"].first["id"])
expect(response.parsed_body["results"].first["name"]).to eq("sample policy")
expect(response.parsed_body["results"].first["towhat"]).to eq("ManageIQ::Providers::Redhat::InfraManager")
expect(response.parsed_body["results"].first["towhat"]).to eq("ExtManagementSystem")
expect(policy).to be_truthy
expect(policy.conditions.count).to eq(2)
expect(policy.actions.count).to eq(1)
Expand Down

0 comments on commit a22161e

Please sign in to comment.