Logo: Relish

  1. Sign in

Project: Apiv3

Bulk Loading Collections

Scenarios
Bulk loading collections.
Given
I have a Team with Members and Events
When
I GET to /bulk_load?team_id=:team_id&types=Team,Member giving the team_id
Then
I should get a 200 OK status code
And
the response is the BulkLoad collection
And
the response contains the Team and Member objects
And
the response doesn't contain any Event objects
Bulk loading without a team_id.
When
I GET to /bulk_load
Then
I should get a 400 CLIENT ERROR status code
And
the error message is "You must include a team_id parameter"
Bulk loading an invalid type.
Given
I have 1 Team
When
I GET to /bulk_load?team_id=:team_id&types=Foo,Bar giving the team_id
Then
I should get a 400 CLIENT ERROR status code
And
the error message is "The following 'types' are invalid: Foo, Bar"
Bulk loading a restricted type.
Given
I have 1 Team
When
I GET to /bulk_load?team_id=:team_id&types=TimeZone
Then
I should get a 400 CLIENT ERROR status code
And
the error message is "The following 'types' are invalid: TimeZone"

Last published almost 7 years ago by semmons99.