mayadata-io / mayadata-io/oep-e2e

Create an api key and check using the api key account is accessible or not. (T-002)

Open
#130 3 comments 0 reactions 1 assignee View on GitHub

@harshita-sharma011 is already working on this.

Since Jan 2, 2020.

teaming
Dominant language
Python
Stars
6
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Test description: https://github.com/mayadata-io/director-test-plans/blob/test-teaming/director-teaming/T-002.md

Create an api key and check using the api key account is accessible or not. (T-002)

API endpoints

1. https://director.mayadata.io/v3/apikey
2. https://director.mayadata.io/v3/accounts/<accountid>

Description

1. Create an account using localauth.
2. You will get AccountId, JWT token and AuthProvider name in response.
3. Use JWT token and AuthProvider name as cookies and make a POST request in https://director.mayadata.io/v3/apikey.
4. You will get one public key and one private key in response.
5. Use that public key and private key as basic auth to get user's account. Make a GET request in https://director.mayadata.io/v3/accounts/<accountid>.
6. You will get successful response and match it with the data you used in account creation.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.