-
Notifications
You must be signed in to change notification settings - Fork 212
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
Fix tests to reduce the number of sensitive credentials used #348
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please DM me to update the CI credentials. Also, is there any strong reason why this is tagged for the changelog? I tend to ignore doc and tests updates.
tests/API/Management/ClientsTest.php
Outdated
// Make sure we only have the 4 fields we requested. | ||
$this->assertEquals(count($fields), count($paged_results[0])); | ||
// Make sure we only have the 4 fields we requested plus "tenant". | ||
$this->assertEquals(count($fields) + 1, count($paged_results[0])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did this change? Can you point out the change that triggered this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure it switched when the token changed from an SDK-generated one using the global client secret to one obtained with a client credentials grant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests shouldn't have changed only because a token value changed, unless the new scope is different from the previous one. Lets check that first and ensure that is the expected behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1bade4e
to
2d85a82
Compare
2d85a82
to
ff51292
Compare
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Changes
Testing