Skip to content
Snippets Groups Projects
Commit e0a318cd authored by Krzysztof Leśniak's avatar Krzysztof Leśniak
Browse files

move validators back to base_test

parent 80fec834
No related branches found
No related tags found
No related merge requests found
...@@ -7,14 +7,6 @@ ...@@ -7,14 +7,6 @@
- generators: - generators:
- test_id: {type: 'number_sequence', start: 1} - test_id: {type: 'number_sequence', start: 1}
- base_test: &base_test
- generator_binds:
- test_id: test_id
- group: *api
- url: "/rpc"
- method: "POST"
- body: {template: {file: "request_template.json"}}
- validator_base: &validator_base - validator_base: &validator_base
- extract_test: {jsonpath_mini: "error", test: "not_exists"} - extract_test: {jsonpath_mini: "error", test: "not_exists"}
- extract_test: {jsonpath_mini: "result", test: "exists"} - extract_test: {jsonpath_mini: "result", test: "exists"}
...@@ -26,15 +18,23 @@ ...@@ -26,15 +18,23 @@
- validator_schema_json: &validator_schema_json - validator_schema_json: &validator_schema_json
- json_schema: {schema: {file: {template: '$method.json.schema'}}} - json_schema: {schema: {file: {template: '$method.json.schema'}}}
- base_test: &base_test
- generator_binds:
- test_id: test_id
- group: *api
- url: "/rpc"
- method: "POST"
- body: {template: {file: "request_template.json"}}
- validators:
- <<: *validator_base
- <<: *validator_schema_json
- test: - test:
- name: "get_dynamic_global_properties" - name: "get_dynamic_global_properties"
- variable_binds: - variable_binds:
- method: "get_dynamic_global_properties" - method: "get_dynamic_global_properties"
- args: {} - args: {}
- <<: *base_test - <<: *base_test
- validators:
- <<: *validator_base
- <<: *validator_schema_json
- test: - test:
- name: "get_config" - name: "get_config"
...@@ -42,9 +42,6 @@ ...@@ -42,9 +42,6 @@
- method: "get_config" - method: "get_config"
- args: {} - args: {}
- <<: *base_test - <<: *base_test
- validators:
- <<: *validator_base
- <<: *validator_schema_json
- test: - test:
- name: "get_witness_schedule" - name: "get_witness_schedule"
...@@ -52,9 +49,6 @@ ...@@ -52,9 +49,6 @@
- method: "get_witness_schedule" - method: "get_witness_schedule"
- args: {} - args: {}
- <<: *base_test - <<: *base_test
- validators:
- <<: *validator_base
- <<: *validator_schema_json
- test: - test:
- name: "get_hardfork_properties" - name: "get_hardfork_properties"
...@@ -62,9 +56,6 @@ ...@@ -62,9 +56,6 @@
- method: "get_hardfork_properties" - method: "get_hardfork_properties"
- args: {} - args: {}
- <<: *base_test - <<: *base_test
- validators:
- <<: *validator_base
- <<: *validator_schema_json
- test: - test:
- name: "get_reward_funds" - name: "get_reward_funds"
...@@ -72,9 +63,6 @@ ...@@ -72,9 +63,6 @@
- method: "get_reward_funds" - method: "get_reward_funds"
- args: {} - args: {}
- <<: *base_test - <<: *base_test
- validators:
- <<: *validator_base
- <<: *validator_schema_json
- test: - test:
- name: "get_current_price_feed" - name: "get_current_price_feed"
...@@ -82,9 +70,6 @@ ...@@ -82,9 +70,6 @@
- method: "get_current_price_feed" - method: "get_current_price_feed"
- args: {} - args: {}
- <<: *base_test - <<: *base_test
- validators:
- <<: *validator_base
- <<: *validator_schema_json
- test: - test:
- name: "get_feed_history" - name: "get_feed_history"
...@@ -92,9 +77,6 @@ ...@@ -92,9 +77,6 @@
- method: "get_feed_history" - method: "get_feed_history"
- args: {} - args: {}
- <<: *base_test - <<: *base_test
- validators:
- <<: *validator_base
- <<: *validator_schema_json
- test: - test:
- name: "list_witnesses" - name: "list_witnesses"
...@@ -102,6 +84,3 @@ ...@@ -102,6 +84,3 @@
- method: "list_witnesses" - method: "list_witnesses"
- args: '{ "start": 0, "limit": 1, "order": "by_name" }' - args: '{ "start": 0, "limit": 1, "order": "by_name" }'
- <<: *base_test - <<: *base_test
- validators:
- <<: *validator_base
- <<: *validator_schema_json
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment