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

Resolve Issue with Season Driver Standings Typing #225

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -710,10 +710,10 @@ public async Task GetSeasonDriverStandingsSuccessfulAsync()
Assert.That(seasonDriverStandingsResponse.Data.Header, Is.Not.Null);
Assert.That(seasonDriverStandingsResponse.Data.Header.Success, Is.True);

Assert.That(seasonDriverStandingsResponse.RateLimitRemaining, Is.EqualTo(99));
Assert.That(seasonDriverStandingsResponse.TotalRateLimit, Is.EqualTo(100));
Assert.That(seasonDriverStandingsResponse.RateLimitReset, Is.EqualTo(new DateTimeOffset(2022, 2, 10, 0, 0, 0, TimeSpan.Zero)));
Assert.That(seasonDriverStandingsResponse.DataExpires, Is.EqualTo(new DateTimeOffset(2022, 8, 27, 11, 23, 19, 507, TimeSpan.Zero)));
Assert.That(seasonDriverStandingsResponse.RateLimitRemaining, Is.EqualTo(239));
Assert.That(seasonDriverStandingsResponse.TotalRateLimit, Is.EqualTo(240));
Assert.That(seasonDriverStandingsResponse.RateLimitReset, Is.EqualTo(new DateTimeOffset(2024, 9, 29, 2, 20, 40, TimeSpan.Zero)));
Assert.That(seasonDriverStandingsResponse.DataExpires, Is.EqualTo(new DateTimeOffset(2024, 9, 29, 2, 32, 29, 935, TimeSpan.Zero)));
});
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,36 @@
{
"headers": {
"x-ratelimit-remaining": "99",
"x-ratelimit-limit": "100",
"x-ratelimit-reset": "1644451200"
},
"content": {
"link": "https://scorpio-assets.s3.amazonaws.com/production/data-server/cache/data-services/stats/member_division/0018ddd2-a9e3-4755-bf38-85b2426851fb?AWSAccessKeyId=AKIAUO6OO4A3357USLO7&Expires=1642767749&Signature=M4K60q92NbjCdV3zqe9I5fAcObw%3D",
"expires": "2022-08-27T11:23:19.507Z"
}
"headers": {
"Connection": "keep-alive",
"Date": "Sun, 29 Sep 2024 02:19:40 GMT",
"ETag": "W/\u0022217-d3NH0V5bLW3kwn4Pz5ayIbBJr0g\u0022",
"Set-Cookie": "AWSALB=CME; Expires=Sun, 06 Oct 2024 02:19:40 GMT; Path=/",
"X-iRacing-Env": "members",
"X-iRacing-Id": "eab62380-2ebb-42d5-a5e1-06d0445f9898",
"X-iRacing-ServiceName": "data-server",
"X-iRacing-ServiceVersion": "2.0.2",
"Content-Security-Policy": "default-src \u0027self\u0027;base-uri \u0027self\u0027;font-src \u0027self\u0027 https: data:;form-action \u0027self\u0027;frame-ancestors \u0027self\u0027;img-src \u0027self\u0027 data:;object-src \u0027none\u0027;script-src \u0027self\u0027;script-src-attr \u0027none\u0027;style-src \u0027self\u0027 https: \u0027unsafe-inline\u0027;upgrade-insecure-requests",
"Cross-Origin-Opener-Policy": "same-origin",
"Cross-Origin-Resource-Policy": "same-origin",
"Origin-Agent-Cluster": "?1",
"Referrer-Policy": "no-referrer",
"Strict-Transport-Security": "max-age=15552000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
"X-DNS-Prefetch-Control": "off",
"X-Download-Options": "noopen",
"X-Frame-Options": "SAMEORIGIN",
"X-Permitted-Cross-Domain-Policies": "none",
"X-XSS-Protection": "0",
"X-RateLimit-Limit": "240",
"X-RateLimit-Remaining": "239",
"X-RateLimit-Reset": "1727576440",
"Cache-Control": "max-age=60",
"X-Cache": "Miss from cloudfront",
"Via": "1.1 40f9bfc26197d992c4653c9bae274480.cloudfront.net (CloudFront)",
"X-Amz-Cf-Pop": "BNE50-P2",
"X-Amz-Cf-Id": "6tIowSSwMh7c0iAgFi_c104qA847M9XZWI6HEBfEswoPvhtFk5Da5Q=="
},
"content": {
"link": "https://scorpio-assets.s3.us-east-1.amazonaws.com/production/data-server/cache/data-services/stats/season_driver_standings/e5d3519d-f2e8-45e0-b338-15acd79d9438?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAUO6OO4A3357USLO7%2F20240929%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240929T021940Z&X-Amz-Expires=120&X-Amz-Signature=a4f94404f2966a26829385ff9cc514af70a56161b07fadaee4ac0d6d7bc0671a&X-Amz-SignedHeaders=host&x-id=GetObject",
"expires": "2024-09-29T02:32:29.935Z"
}
}
Original file line number Diff line number Diff line change
@@ -1,24 +1,37 @@
{
"headers": {},
"content": {
"success": true,
"season_id": 3656,
"season_name": "Grand Prix Series - 2022 Season 2",
"season_short_name": "2022 Season 2",
"series_id": 260,
"series_name": "Grand Prix Series",
"car_class_id": 3185,
"race_week_num": 0,
"chunk_info": {
"chunk_size": 500,
"num_chunks": 2,
"rows": 647,
"base_download_url": "https://dqfp1ltauszrc.cloudfront.net/public/standings/season/3656/season-driver/3185/0/",
"chunk_file_names": [
"c1abec864bf6fb301a10b2cc05d33bcbc78b1a4b32bf8b97ca975450f93c0b12.json",
"c1ab788269a48ee1c78926d46b1b18eb1d7e6be9505a5f50a2f06e4899a3be23.json"
]
},
"last_updated": "2022-04-02T11:34:30.81764Z"
}
{
"headers": {
"x-amz-id-2": "VfCaUIRP7rRSJ9pzze3QOaFQPvlBuadCAg82ViJjcBFvRoYgbUslP92X3lcOwNO/v8RqdBd7\u002BKc=",
"x-amz-request-id": "7JP53B1XXX010TX9",
"Date": "Sun, 29 Sep 2024 02:19:42 GMT",
"x-amz-expiration": "expiry-date=\u0022Tue, 01 Oct 2024 00:00:00 GMT\u0022, rule-id=\u0022production data-server cache expiry\u0022",
"ETag": "\u002251c219f766bd8f5cc6306733a55fe5cd\u0022",
"x-amz-server-side-encryption": "AES256",
"Cache-Control": "max-age=60",
"Accept-Ranges": "bytes",
"Server": "AmazonS3"
},
"content": {
"success": true,
"season_id": 4183,
"season_name": "Formula A - Grand Prix Series - Fixed - 2023 Season 2",
"season_short_name": "2023 Season 2 - Fixed",
"series_id": 484,
"series_name": "Formula A - Grand Prix Series - Fixed",
"car_class_id": 4013,
"race_week_num": -1,
"division": 1,
"club_id": -1,
"customer_rank": 45,
"chunk_info": {
"chunk_size": 500,
"num_chunks": 1,
"rows": 211,
"base_download_url": "https://scorpio-assets.s3.amazonaws.com/members/messaging-services/long_lived/standings/season-driver/season/4183/4013/all/filters/1/all/",
"chunk_file_names": [
"f055a78f229bcb1006262f9f2b0aaffb862cf961e5201211dca4d2c52f3163ed.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20240929T021729Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Credential=AKIAUO6OO4A3357USLO7%2F20240929%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=36439ce0eb66d65b25c0fe1fff9d5a2429e4609a7cb10250669ec40b24b9a241"
]
},
"last_updated": "2024-09-29T02:17:29.771205029Z",
"csv_url": "https://scorpio-assets.s3.amazonaws.com/members/messaging-services/long_lived/standings/season-driver/season/4183/4013/all/filters/1/all/export.csv?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20240929T021729Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Credential=AKIAUO6OO4A3357USLO7%2F20240929%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=66965c7a705df66460460324a86f45ad57fab48c1581310da656042d4a3ad845"
}
}
Loading
Loading