-
Notifications
You must be signed in to change notification settings - Fork 216
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 Jobs endpoint tests #365
Conversation
05557ec
to
7b849eb
Compare
7b849eb
to
cd4e021
Compare
$headers = $api->getHistoryHeaders(); | ||
$this->assertEquals( 'Bearer __api_token__', $headers['Authorization'][0] ); | ||
$this->assertEquals( self::$expectedTelemetry, $headers['Auth0-Client'][0] ); | ||
$this->assertStringStartsWith( 'multipart/form-data', $headers['Content-Type'][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 starts with vs equals? also, curious on why this request is using form vs body?
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 starts with vs equals?
The URL includes the query parameters and I just want the URL here.
curious on why this request is using form vs body?
Import users endpoint requires a file to be posted.
// Get a single, active database connection. | ||
$default_db_name = 'Username-Password-Authentication'; | ||
$get_connection_result = $api->connections->getAll( 'auth0', ['id'], true, 0, 1, ['name' => $default_db_name] ); | ||
sleep(0.2); |
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 is this required? We should be lowering the time each run takes, because of the CI OSS plan limits. 🧀 🐀
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.
Management API limits
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
Add tests for the Management API Jobs endpoint . This SDK does not yet cover all Jobs endpoints, hence the limited tests.
References
Tests for #354
Testing