Skip to content

Conversation

@amab8901
Copy link
Collaborator

@amab8901 amab8901 commented Nov 6, 2023

Solves: https://worldmobile.atlassian.net/browse/EN-505

Description:

  • Implement integration tests (tests/mock.rs) for the endpoints in src/server/handler/handler_rest/info.rs
  • Simplify repetitive code into a function (data_provider()) in info.rs and dbsync/api.rs
  • Correct inaccurate/confusing descriptions/names in info.rs (for example script_utxos -> get_address_utxos, utxos_per_addr -> get_address_utxos)
  • Make functions in dbsync/api.rs more easily debugged
  • Replace return value Vec<u8> with String
  • Expose all endpoints that weren't previously exposed (token_supply, mint_metadata_policy_assetname)
  • Delete redundant endpoints (retrieve_active_pools_all_pages, pool_reward_address)
  • Renamed duplicate tag names so that one endpoint can be run without simultaneously running another endpoint (example: Mint Metadata -> Mint Metadata Policy Assetname)
  • Fix mint_metadata endpoint (it previously failed tests because it encoded all byte arrays to hex without first trying to encode to utf8)

@amab8901 amab8901 changed the base branch from main to develop November 6, 2023 09:12
@amab8901 amab8901 force-pushed the aa/feat/EN-505-automate-e2e-tests3 branch from e77a40f to 1ab0570 Compare November 6, 2023 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants