consolidate test configuration

This commit is contained in:
Shreyas Goenka 2025-03-02 15:33:45 +01:00
parent db4fc698ea
commit f249a1ac3b
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
9 changed files with 15 additions and 55 deletions

View File

@ -1,4 +1,6 @@
IncludeRequestHeaders = ["Authorization"]
RecordRequests = true
Local = true
Cloud = false
@ -13,3 +15,12 @@ New = '[OS]'
[[Repls]]
Old = 'execution_time_ms\\\":\d{1,5},'
New = 'execution_time_ms\":\"SMALL_INT\",'
[[Server]]
Pattern = "POST /telemetry-ext"
Response.Body = '''
{
"errors": [],
"numProtoSuccess": 2
}
'''

View File

@ -1,10 +0,0 @@
RecordRequests = true
[[Server]]
Pattern = "POST /telemetry-ext"
Response.Body = '''
{
"errors": [],
"numProtoSuccess": 2
}
'''

View File

@ -1 +1 @@
error: upload did not succeed after three attempts. err: &retries.Err{Err:(*apierr.APIError)(0x140003a20a0), Halt:true}. response body: (*telemetry.ResponseBody)(nil)
error: upload did not succeed after three attempts. err: &retries.Err{Err:(*apierr.APIError)(0x14000361540), Halt:true}. response body: (*telemetry.ResponseBody)(nil)

View File

@ -1,5 +1,3 @@
RecordRequests = true
[[Server]]
Pattern = "POST /telemetry-ext"
Response.Body = '''
@ -9,3 +7,5 @@ Response.Body = '''
}
'''
Response.StatusCode = 501
# TODO: Validate that this and the other tests have sane outputs.

View File

@ -1,5 +1,3 @@
RecordRequests = true
[[Server]]
Pattern = "POST /telemetry-ext"
Response.Body = '''

View File

@ -1,10 +0,0 @@
RecordRequests = true
[[Server]]
Pattern = "POST /telemetry-ext"
Response.Body = '''
{
"errors": [],
"numProtoSuccess": 2
}
'''

View File

@ -4,11 +4,4 @@
Local = true
Cloud = true
[[Server]]
Pattern = "POST /telemetry-ext"
Response.Body = '''
{
"errors": [],
"numProtoSuccess": 2
}
'''
RecordRequests = false

View File

@ -1,15 +1,3 @@
RecordRequests = true
[[Server]]
Pattern = "POST /telemetry-ext"
Response.Body = '''
{
"errors": [],
"numProtoSuccess": 2
}
'''
# "client_id:client_secret" in base64 is Y2xpZW50X2lkOmNsaWVudF9zZWNyZXQ=, expect to
# see this in Authorization header
[[Repls]]

View File

@ -1,10 +0,0 @@
RecordRequests = true
[[Server]]
Pattern = "POST /telemetry-ext"
Response.Body = '''
{
"errors": [],
"numProtoSuccess": 2
}
'''