Skip to content

Commit

Permalink
Remove testing of v_workflow_class
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafanie committed Jul 23, 2024
1 parent 2fb626a commit 3ebce41
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions spec/requests/requests_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,12 @@
request.add_tag(t.name, t.children.first.name)

api_basic_authorize action_identifier(:requests, :read, :resource_actions, :get)
get api_request_url(nil, request), :params => { :attributes => "workflow,v_allowed_tags,v_workflow_class" }
get api_request_url(nil, request), :params => {:attributes => "workflow,v_allowed_tags"}

expected_response = a_hash_including(
"id" => request.id.to_s,
"workflow" => a_hash_including("values"),
"v_allowed_tags" => [a_hash_including("children")],
"v_workflow_class" => a_hash_including(
"instance_logger" => a_hash_including("klass" => request.workflow.class.to_s))
"id" => request.id.to_s,
"workflow" => a_hash_including("values"),
"v_allowed_tags" => [a_hash_including("children")]
)

expect(response.parsed_body).to match(expected_response)
Expand Down Expand Up @@ -314,11 +312,10 @@
:source_type => vm_template.class.name)

api_basic_authorize action_identifier(:requests, :read, :resource_actions, :get)
get api_request_url(nil, request), :params => { :attributes => "workflow,v_allowed_tags,v_workflow_class" }
get api_request_url(nil, request), :params => {:attributes => "workflow,v_allowed_tags"}

expected_response = a_hash_including(
"id" => request.id.to_s,
"v_workflow_class" => {}
"id" => request.id.to_s
)

expect(response.parsed_body).to match(expected_response)
Expand Down

0 comments on commit 3ebce41

Please sign in to comment.