Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Write tests for createNearAccount RPC #14

Open
5 tasks
Sladuca opened this issue Feb 5, 2021 · 0 comments
Open
5 tasks

Write tests for createNearAccount RPC #14

Sladuca opened this issue Feb 5, 2021 · 0 comments
Labels
rust-novice good for individuals with limited or no rust experience tests

Comments

@Sladuca
Copy link
Contributor

Sladuca commented Feb 5, 2021

Problem

though a rough implementation of createNearAccount has been written, it has not yet been tested.

Solution

write some tests for it.

Tasks

test each of the following things. all failures and responses should follow the JSON-RPC v2.0 spec.

  • fails when no user is logged in
  • fails when the logged-in user is not authorized to create a "web3" account
  • fails with a helpful message when requested account ID does not exist
  • fails when the logged-in user already has a linked "web3" account
  • created account is of the form name.WALLET_ACCOUNT_ID when it succeeds
@Sladuca Sladuca added rust-novice good for individuals with limited or no rust experience tests labels Feb 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
rust-novice good for individuals with limited or no rust experience tests
Projects
None yet
Development

No branches or pull requests

1 participant