fix(go-build-alpine): honour OONI_PSIPHON_TAGS (#968)
Closes https://github.com/ooni/probe/issues/2334. While there, reinstate integration tests, which were also lost in a previous refactoring. However, only run those tests for linux/amd64 because we can be confident that the Go compiler is WAI for all archs we support. While there, always use bash for running end-to-end tests. H/T @ainghazal for discovering and reporting this bug.
This commit is contained in:
parent
2cfc3325db
commit
89a584f93b
10 changed files with 57 additions and 31 deletions
|
|
@ -19,7 +19,7 @@ func TestCheckReportIDWorkingAsIntended(t *testing.T) {
|
|||
}
|
||||
client := probeservices.Client{
|
||||
APIClientTemplate: httpx.APIClientTemplate{
|
||||
BaseURL: "https://ams-pg.ooni.org/",
|
||||
BaseURL: "https://api.ooni.io/",
|
||||
HTTPClient: http.DefaultClient,
|
||||
Logger: log.Log,
|
||||
UserAgent: "miniooni/0.1.0-dev",
|
||||
|
|
@ -42,7 +42,7 @@ func TestCheckReportIDWorkingAsIntended(t *testing.T) {
|
|||
func TestCheckReportIDWorkingWithCancelledContext(t *testing.T) {
|
||||
client := probeservices.Client{
|
||||
APIClientTemplate: httpx.APIClientTemplate{
|
||||
BaseURL: "https://ams-pg.ooni.org/",
|
||||
BaseURL: "https://api.ooni.io/",
|
||||
HTTPClient: http.DefaultClient,
|
||||
Logger: log.Log,
|
||||
UserAgent: "miniooni/0.1.0-dev",
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import (
|
|||
func TestGetMeasurementMetaWorkingAsIntended(t *testing.T) {
|
||||
client := probeservices.Client{
|
||||
APIClientTemplate: httpx.APIClientTemplate{
|
||||
BaseURL: "https://ams-pg.ooni.org/",
|
||||
BaseURL: "https://api.ooni.io/",
|
||||
HTTPClient: http.DefaultClient,
|
||||
Logger: log.Log,
|
||||
UserAgent: "miniooni/0.1.0-dev",
|
||||
|
|
@ -85,7 +85,7 @@ func TestGetMeasurementMetaWorkingAsIntended(t *testing.T) {
|
|||
func TestGetMeasurementMetaWorkingWithCancelledContext(t *testing.T) {
|
||||
client := probeservices.Client{
|
||||
APIClientTemplate: httpx.APIClientTemplate{
|
||||
BaseURL: "https://ams-pg.ooni.org/",
|
||||
BaseURL: "https://api.ooni.io/",
|
||||
HTTPClient: http.DefaultClient,
|
||||
Logger: log.Log,
|
||||
UserAgent: "miniooni/0.1.0-dev",
|
||||
|
|
|
|||
Loading…
Reference in a new issue