diff --git a/.gitlab-ci.yaml b/.gitlab-ci.yaml index 3408310a7e98c5f38b6119369507f66b7dad118f..52214acf6abdc1bc22c53df16c21e48a4b649827 100644 --- a/.gitlab-ci.yaml +++ b/.gitlab-ci.yaml @@ -73,7 +73,8 @@ hivemind_sync: script: - pip3 install --user --upgrade pip setuptools - # WARNING: hardcoded 5000017 for max block + # WARNING!!! temporarily hardcoded 5000017 instead $HIVEMIND_MAX_BLOCK + # revert that change when $HIVEMIND_MAX_BLOCK will be set to 5000017 - scripts/ci_sync.sh "$HIVEMIND_DB_NAME" "$HIVEMIND_POSTGRESQL_CONNECTION_STRING" "$HIVEMIND_SOURCE_HIVED_URL" 5000017 $HIVEMIND_HTTP_PORT artifacts: @@ -272,6 +273,12 @@ tags_api_smoketest_negative: script: - scripts/ci_start_api_smoketest.sh localhost "$HIVEMIND_HTTP_PORT" tags_api_negative/ api_smoketest_tags_api_negative.xml +mock_tests: + <<: *common_api_smoketest_job + + script: + - scripts/ci_start_api_smoketest.sh localhost "$HIVEMIND_HTTP_PORT" mock_tests/ api_smoketest_mock_tests.xml + api_smoketest_benchmark: stage: benchmark-tests environment: hive-4.pl.syncad.com diff --git a/mock_data/block_data/follow_op/mock_block_data_follow.json b/mock_data/block_data/follow_op/mock_block_data_follow.json index d2a7532821ebb878460e8c5a283e6d1dde318702..63d158b848c802573ad6b9e3cb5479e5209e2b84 100644 --- a/mock_data/block_data/follow_op/mock_block_data_follow.json +++ b/mock_data/block_data/follow_op/mock_block_data_follow.json @@ -840,7 +840,70 @@ "transaction_merkle_root": "0000000000000000000000000000000000000000", "extensions": [], "witness_signature": "", - "transactions": [], + "transactions": [ + { + "ref_block_num": 100001, + "ref_block_prefix": 1, + "expiration": "2020-03-23T12:17:00", + "operations": [ + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "tester1" + ], + "id": "follow", + "json": "[\"follow\",{\"follower\":\"tester1\",\"following\":\"tester2\",\"what\":[\"blog\"]}]" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "tester2" + ], + "id": "follow", + "json": "[\"follow\",{\"follower\":\"tester2\",\"following\":[\"tester3\", \"tester4\"],\"what\":[\"blog\"]}]" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "tester3" + ], + "id": "follow", + "json": "[\"follow\",{\"follower\":\"tester3\",\"following\":[\"tester4\"],\"what\":[\"blog\"]}]" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "tester4" + ], + "id": "follow", + "json": "[\"follow\",{\"follower\":\"tester4\",\"following\":[\"tester5\", \"tester1\"],\"what\":[\"blog\"]}]" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "tester5" + ], + "id": "follow", + "json": "[\"follow\",{\"follower\":\"tester5\",\"following\":[\"tester1\", \"tester2\"],\"what\":[\"blog\"]}]" + } + } + ] + } + ], "block_id": "004c4b4e00000000000000000000000000000000", "signing_key": "", "transaction_ids": [] diff --git a/tests/tests_api b/tests/tests_api index f8ac3e6776ef31f23d14a746b6ba6c281382e9cc..682c86040a6d9d8b9b142930982d66e36468a4c7 160000 --- a/tests/tests_api +++ b/tests/tests_api @@ -1 +1 @@ -Subproject commit f8ac3e6776ef31f23d14a746b6ba6c281382e9cc +Subproject commit 682c86040a6d9d8b9b142930982d66e36468a4c7