Adds `a_graphql_entity_for`, a general matcher
This adds `GraphqlHelpers#a_graphql_entity_for`, which helps us write expectations about results from GraphQL queries. In addition to the main reason for this matcher (abstracting over `id: global_id_of(thing)` checks), it handles simple field/method-name mappings and custom field mappings, which accounts for 95% of all use cases. This matcher can be converted back to a hash, which means it can be destructured as `**a_graphql_entity_for(model)`.
显示
- ee/spec/graphql/mutations/dast/profiles/delete_spec.rb 3 个添加, 1 个删除ee/spec/graphql/mutations/dast/profiles/delete_spec.rb
- ee/spec/graphql/mutations/dast/profiles/run_spec.rb 3 个添加, 1 个删除ee/spec/graphql/mutations/dast/profiles/run_spec.rb
- ee/spec/graphql/mutations/dast/profiles/update_spec.rb 1 个添加, 1 个删除ee/spec/graphql/mutations/dast/profiles/update_spec.rb
- ee/spec/graphql/mutations/dast_scanner_profiles/delete_spec.rb 3 个添加, 1 个删除...ec/graphql/mutations/dast_scanner_profiles/delete_spec.rb
- ee/spec/graphql/mutations/dast_scanner_profiles/update_spec.rb 3 个添加, 1 个删除...ec/graphql/mutations/dast_scanner_profiles/update_spec.rb
- ee/spec/graphql/mutations/namespaces/increase_storage_temporarily_spec.rb 1 个添加, 1 个删除...mutations/namespaces/increase_storage_temporarily_spec.rb
- ee/spec/graphql/mutations/vulnerabilities/dismiss_spec.rb 1 个添加, 1 个删除ee/spec/graphql/mutations/vulnerabilities/dismiss_spec.rb
- ee/spec/graphql/mutations/vulnerabilities/finding_dismiss_spec.rb 1 个添加, 1 个删除...graphql/mutations/vulnerabilities/finding_dismiss_spec.rb
- ee/spec/graphql/resolvers/network_policy_resolver_spec.rb 1 个添加, 1 个删除ee/spec/graphql/resolvers/network_policy_resolver_spec.rb
- ee/spec/requests/api/graphql/boards/epic_board_list_epics_query_spec.rb 4 个添加, 8 个删除...ts/api/graphql/boards/epic_board_list_epics_query_spec.rb
- ee/spec/requests/api/graphql/boards/epic_lists_query_spec.rb 13 个添加, 12 个删除ee/spec/requests/api/graphql/boards/epic_lists_query_spec.rb
- ee/spec/requests/api/graphql/instance_security_dashboard_spec.rb 1 个添加, 1 个删除.../requests/api/graphql/instance_security_dashboard_spec.rb
- ee/spec/requests/api/graphql/merge_request_reviewer_spec.rb 4 个添加, 5 个删除ee/spec/requests/api/graphql/merge_request_reviewer_spec.rb
- ee/spec/requests/api/graphql/merge_requests/approval_state_spec.rb 18 个添加, 17 个删除...equests/api/graphql/merge_requests/approval_state_spec.rb
- ee/spec/requests/api/graphql/mutations/dast/profiles/create_spec.rb 1 个添加, 1 个删除...quests/api/graphql/mutations/dast/profiles/create_spec.rb
- ee/spec/requests/api/graphql/mutations/dast_scanner_profiles/create_spec.rb 2 个添加, 2 个删除...pi/graphql/mutations/dast_scanner_profiles/create_spec.rb
- ee/spec/requests/api/graphql/mutations/dast_scanner_profiles/update_spec.rb 3 个添加, 4 个删除...pi/graphql/mutations/dast_scanner_profiles/update_spec.rb
- ee/spec/requests/api/graphql/mutations/dast_site_profiles/create_spec.rb 1 个添加, 1 个删除...s/api/graphql/mutations/dast_site_profiles/create_spec.rb
- ee/spec/requests/api/graphql/mutations/dast_site_tokens/create_spec.rb 1 个添加, 1 个删除...sts/api/graphql/mutations/dast_site_tokens/create_spec.rb
- ee/spec/requests/api/graphql/mutations/dast_site_validations/create_spec.rb 1 个添加, 1 个删除...pi/graphql/mutations/dast_site_validations/create_spec.rb
加载中
想要评论请 注册 或 登录