blob: 22cd8adf96bb65d7e3fb810ce2aedb1a5e48f7b2 [file] [log] [blame]
// Copyright 2020 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This is based off data the Cocoon backend sends out from v1.
// It doesn't map directly to protos since the backend does
// not use protos yet.
const String luciJsonGetStatsResponse = '''
{
"Statuses": [
{
"Checklist": {
"Key": "iamatestkey",
"Checklist": {
"Branch": "master",
"FlutterRepositoryPath": "flutter/cocoon",
"CreateTimestamp": 123456789,
"Commit": {
"Sha": "ShaShankHash",
"Author": {
"Login": "ShaSha",
"avatar_url": "https://flutter.dev"
}
}
}
},
"Stages": [
{
"Name": "chromebot",
"Status": "Succeeded",
"Tasks": [
{
"Key": "taskKey1",
"Task": {
"Attempts": 1,
"CreateTimestamp": 1569353940885,
"EndTimestamp": 1569354700642,
"Flaky": false,
"Name": "linux",
"Reason": "",
"RequiredCapabilities": ["linux"],
"ReservedForAgentID": "",
"StageName": "chromebot",
"StartTimestamp": 1569354594672,
"Status": "Succeeded",
"TimeoutInMinutes": 0,
"BuildNumberList": "123",
"BuilderName": "Linux",
"LuciBucket": "luci.flutter.try"
}
}
]
}
]
}
]
}
''';
const String jsonGetBranchesResponse = '''[
{
"branch":"flutter-3.13-candidate.0",
"name":"stable"
},
{
"branch":"flutter-3.14-candidate.0",
"name":"beta"
},
{
"branch":"flutter-3.15-candidate.5",
"name":"dev"
},
{
"branch":"master",
"name":"HEAD"
}
]''';
const String jsonGetReposResponse = '''
[
"flutter",
"cocoon",
"engine"
]
''';
const String jsonBuildStatusTrueResponse = '{"1":1}';
const String jsonBuildStatusFalseResponse = '{"1":2,"2":["failed_task_1"]}';
const String baseApiUrl = 'https://flutter-dashboard.appspot.com';