File tree Expand file tree Collapse file tree 3 files changed +14
-15
lines changed Expand file tree Collapse file tree 3 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 1
1
describe ManageIQ ::API ::Client ::Collection do
2
- let ( :api_url ) { "http://localhost:3000/api" }
3
- let ( :groups_url ) { "#{ api_url } /groups" }
4
- let ( :vms_url ) { "#{ api_url } /vms" }
5
- let ( :vms_expand_url ) { "#{ vms_url } ?expand=resources" }
6
- let ( :entrypoint_request_url ) { "#{ api_url } ?attributes=authorization" }
2
+ let ( :api_url ) { "http://localhost:3000/api" }
3
+ let ( :groups_url ) { "#{ api_url } /groups" }
4
+ let ( :vms_url ) { "#{ api_url } /vms" }
5
+ let ( :vms_expand_url ) { "#{ vms_url } ?expand=resources" }
6
+ let ( :entrypoint_request_url ) { "#{ api_url } ?attributes=authorization" }
7
7
8
8
let ( :entrypoint_response ) { api_file_fixture ( "responses/entrypoint.json" ) }
9
9
let ( :get_vms_response ) { api_file_fixture ( "responses/get_vms.json" ) }
25
25
expect ( miq . collections . collect ( &:name ) ) . to match_array ( collection_names )
26
26
27
27
miq . collections . each do |collection |
28
- klass = "#{ described_class } ::#{ collection . name . camelize } " . constantize
29
- expect ( collection ) . to be_a ( klass )
28
+ expect ( collection ) . to be_a ( described_class . subclass ( collection . name ) )
30
29
end
31
30
end
32
31
end
Original file line number Diff line number Diff line change 1
1
describe ManageIQ ::API ::Client ::Resource do
2
- let ( :api_url ) { "http://localhost:3000/api" }
3
- let ( :vms_url ) { "#{ api_url } /vms" }
4
- let ( :vms_expand_url ) { "#{ vms_url } ?expand=resources" }
5
- let ( :entrypoint_request_url ) { "#{ api_url } ?attributes=authorization" }
2
+ let ( :api_url ) { "http://localhost:3000/api" }
3
+ let ( :vms_url ) { "#{ api_url } /vms" }
4
+ let ( :vms_expand_url ) { "#{ vms_url } ?expand=resources" }
5
+ let ( :entrypoint_request_url ) { "#{ api_url } ?attributes=authorization" }
6
6
7
7
let ( :entrypoint_response ) { api_file_fixture ( "responses/entrypoint.json" ) }
8
8
let ( :get_test1_vms_response ) { api_file_fixture ( "responses/get_test1_vms.json" ) }
Original file line number Diff line number Diff line change 1
1
describe ManageIQ ::API ::Client ::Subresource do
2
- let ( :api_url ) { "http://localhost:3000/api" }
3
- let ( :vms_url ) { "#{ api_url } /vms" }
4
- let ( :vms_expand_url ) { "#{ vms_url } ?expand=resources" }
5
- let ( :entrypoint_request_url ) { "#{ api_url } ?attributes=authorization" }
2
+ let ( :api_url ) { "http://localhost:3000/api" }
3
+ let ( :vms_url ) { "#{ api_url } /vms" }
4
+ let ( :vms_expand_url ) { "#{ vms_url } ?expand=resources" }
5
+ let ( :entrypoint_request_url ) { "#{ api_url } ?attributes=authorization" }
6
6
7
7
let ( :entrypoint_response ) { api_file_fixture ( "responses/entrypoint.json" ) }
8
8
let ( :options_vms_response ) { api_file_fixture ( "responses/options_vms.json" ) }
You can’t perform that action at this time.
0 commit comments