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

Add APIs integration tests [CLI-96] #286

Merged
merged 9 commits into from
May 10, 2021
Merged

Add APIs integration tests [CLI-96] #286

merged 9 commits into from
May 10, 2021

Conversation

Widcket
Copy link
Contributor

@Widcket Widcket commented May 8, 2021

Description

This PR adds integration tests for APIs and fixes two issues where the value of the scopes flag would be ignored.

Screen Shot 2021-05-09 at 08 50 27

Testing

  • This change adds test coverage for new/changed/fixed functionality

Checklist

  • I have added documentation for new/changed functionality in this PR or in auth0.com/docs
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not master

@Widcket Widcket requested a review from a team May 8, 2021 18:11
echo deleting "$name"
$( auth0 apis delete "$id")
fi
done
Copy link
Contributor Author

@Widcket Widcket May 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be handled in batches of 5 with

auth0 apis list --format json --no-input \
    | jq -r '.[] | select(.Name | startswith("integration-test-api-")) | "\(.Name) \(.ID)\n"' \
    | xargs -P 5 -n 2 bash -c 'echo Deleting $0 && auth0 apis delete $1 --force' 

Copy link
Contributor

@jfatta jfatta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks pretty neat 🧪 🚀

docs/ci.md Outdated Show resolved Hide resolved
@Widcket Widcket merged commit 318326a into main May 10, 2021
@Widcket Widcket deleted the apis-integration-tests branch May 10, 2021 17:30
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