Add versioning to gold endpoints (#66054)

This commit is contained in:
Kate Lovett 2020-09-18 14:47:09 -07:00 committed by GitHub
parent 8fb807a4d3
commit 9618e10a52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -398,7 +398,7 @@ void main() {
MockHttpClientResponse mockHttpResponse;
setUp(() {
url = Uri.parse('https://flutter-gold.skia.org/json/ignores');
url = Uri.parse('https://flutter-gold.skia.org/json/v1/ignores');
mockHttpRequest = MockHttpClientRequest();
mockHttpResponse = MockHttpClientResponse(utf8.encode(
ignoreResponseTemplate(

View File

@ -17,7 +17,7 @@ String authTemplate({
}
/// Json response template for Skia Gold ignore request:
/// https://flutter-gold.skia.org/json/ignores
/// https://flutter-gold.skia.org/json/v1/ignores
String ignoreResponseTemplate({
String pullRequestNumber = '0000',
String testName = 'flutter.golden_test.1',

View File

@ -418,7 +418,7 @@ class SkiaGoldClient {
final String traceID = getTraceID(testName);
await io.HttpOverrides.runWithHttpOverrides<Future<void>>(() async {
final Uri requestForExpectations = Uri.parse(
'https://flutter-gold.skia.org/json/latestpositivedigest/$traceID'
'https://flutter-gold.skia.org/json/v1/latestpositivedigest/$traceID'
);
late String rawResponse;
try {
@ -484,7 +484,7 @@ class SkiaGoldClient {
late String rawResponse;
await io.HttpOverrides.runWithHttpOverrides<Future<void>>(() async {
final Uri requestForIgnores = Uri.parse(
'https://flutter-gold.skia.org/json/ignores'
'https://flutter-gold.skia.org/json/v1/ignores'
);
try {