Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

space register and authorize need testing #61

Open
travis opened this issue Mar 23, 2023 · 1 comment
Open

space register and authorize need testing #61

travis opened this issue Mar 23, 2023 · 1 comment

Comments

@travis
Copy link
Member

travis commented Mar 23, 2023

Per #60 (comment) it would be good to have tests for space register. It would also be nice to test authorize.

Both of these commands interact with real services, and space register in particular can't execute if the test agent doesn't have any proofs.

I've pushed a branch with the beginnings of a test for these flows:

https://github.com/web3-storage/w3cli/tree/feat/register-space-testing
0a39f58

but figuring out the right way to test these commands that depend on remote services is a bit of a project.

@gobengo
Copy link
Contributor

gobengo commented Mar 23, 2023

bengo@bengo ~/protocol.ai/w3protocol/packages/access-api ⚡  w3 authorize bengo@dag.house
file:///Users/bengo/.nvm/versions/node/v18.10.0/lib/node_modules/@web3-storage/w3cli/node_modules/@ucanto/principal/src/signer.js:47
    if (archive.id.startsWith('did:key:')) {
                   ^

TypeError: Cannot read properties of undefined (reading 'startsWith')
    at Importer.from (file:///Users/bengo/.nvm/versions/node/v18.10.0/lib/node_modules/@web3-storage/w3cli/node_modules/@ucanto/principal/src/signer.js:47:20)
    at AgentData.fromExport (file:///Users/bengo/.nvm/versions/node/v18.10.0/lib/node_modules/@web3-storage/w3cli/node_modules/@web3-storage/access/src/agent-data.js:79:27)
    at create (file:///Users/bengo/.nvm/versions/node/v18.10.0/lib/node_modules/@web3-storage/w3cli/node_modules/@web3-storage/w3up-client/src/index.node.js:27:40)
    at async authorize (file:///Users/bengo/.nvm/versions/node/v18.10.0/lib/node_modules/@web3-storage/w3cli/index.js:20:18)

Node.js v18.10.0
bengo@bengo ~/protocol.ai/w3protocol/packages/access-api ⚡      

I'm assuming this is because I have stored state from very old verisons?
I'm willing to fully reset since this is beta. what would I do to reset my store?

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

No branches or pull requests

2 participants