Unverified Commit 9618e10a authored by Kate Lovett's avatar Kate Lovett Committed by GitHub

Add versioning to gold endpoints (#66054)

parent 8fb807a4
...@@ -398,7 +398,7 @@ void main() { ...@@ -398,7 +398,7 @@ void main() {
MockHttpClientResponse mockHttpResponse; MockHttpClientResponse mockHttpResponse;
setUp(() { setUp(() {
url = Uri.parse('https://flutter-gold.skia.org/json/ignores'); url = Uri.parse('https://flutter-gold.skia.org/json/v1/ignores');
mockHttpRequest = MockHttpClientRequest(); mockHttpRequest = MockHttpClientRequest();
mockHttpResponse = MockHttpClientResponse(utf8.encode( mockHttpResponse = MockHttpClientResponse(utf8.encode(
ignoreResponseTemplate( ignoreResponseTemplate(
......
...@@ -17,7 +17,7 @@ String authTemplate({ ...@@ -17,7 +17,7 @@ String authTemplate({
} }
/// Json response template for Skia Gold ignore request: /// 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 ignoreResponseTemplate({
String pullRequestNumber = '0000', String pullRequestNumber = '0000',
String testName = 'flutter.golden_test.1', String testName = 'flutter.golden_test.1',
......
...@@ -418,7 +418,7 @@ class SkiaGoldClient { ...@@ -418,7 +418,7 @@ class SkiaGoldClient {
final String traceID = getTraceID(testName); final String traceID = getTraceID(testName);
await io.HttpOverrides.runWithHttpOverrides<Future<void>>(() async { await io.HttpOverrides.runWithHttpOverrides<Future<void>>(() async {
final Uri requestForExpectations = Uri.parse( 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; late String rawResponse;
try { try {
...@@ -484,7 +484,7 @@ class SkiaGoldClient { ...@@ -484,7 +484,7 @@ class SkiaGoldClient {
late String rawResponse; late String rawResponse;
await io.HttpOverrides.runWithHttpOverrides<Future<void>>(() async { await io.HttpOverrides.runWithHttpOverrides<Future<void>>(() async {
final Uri requestForIgnores = Uri.parse( final Uri requestForIgnores = Uri.parse(
'https://flutter-gold.skia.org/json/ignores' 'https://flutter-gold.skia.org/json/v1/ignores'
); );
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment