mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Add versioning to gold endpoints (#66054)
This commit is contained in:
parent
8fb807a4d3
commit
9618e10a52
@ -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(
|
||||
|
@ -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',
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user