Skip to content

Commit

Permalink
chore: start using ams-pg-test.ooni.org for testing (#1030)
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone authored Nov 10, 2020
1 parent a1819a8 commit 4d77bad
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion experiment/fbmessenger/fbmessenger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func newsession(t *testing.T) model.ExperimentSession {
sess, err := engine.NewSession(engine.SessionConfig{
AssetsDir: "../../testdata",
AvailableProbeServices: []model.Service{{
Address: "https://ams-pg.ooni.org",
Address: "https://ams-pg-test.ooni.org",
Type: "https",
}},
Logger: log.Log,
Expand Down
2 changes: 1 addition & 1 deletion experiment/hhfm/hhfm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ func newsession(t *testing.T) model.ExperimentSession {
sess, err := engine.NewSession(engine.SessionConfig{
AssetsDir: "../../testdata",
AvailableProbeServices: []model.Service{{
Address: "https://ams-pg.ooni.org",
Address: "https://ams-pg-test.ooni.org",
Type: "https",
}},
Logger: log.Log,
Expand Down
2 changes: 1 addition & 1 deletion experiment/webconnectivity/webconnectivity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func newsession(t *testing.T, lookupBackends bool) model.ExperimentSession {
sess, err := engine.NewSession(engine.SessionConfig{
AssetsDir: "../../testdata",
AvailableProbeServices: []model.Service{{
Address: "https://ams-pg.ooni.org",
Address: "https://ams-pg-test.ooni.org",
Type: "https",
}},
Logger: log.Log,
Expand Down
2 changes: 1 addition & 1 deletion internal/mockable/mockable.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (sess *Session) NewOrchestraClient(ctx context.Context) (model.ExperimentOr
return nil, sess.MockableOrchestraClientError
}
clnt, err := probeservices.NewClient(sess, model.Service{
Address: "https://ams-pg.ooni.org/",
Address: "https://ams-pg-test.ooni.org/",
Type: "https",
})
runtimex.PanicOnError(err, "orchestra.NewClient should not fail here")
Expand Down
2 changes: 1 addition & 1 deletion oonimkall/session_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
func NewSessionWithAssetsDir(assetsDir string) (*oonimkall.Session, error) {
return oonimkall.NewSession(&oonimkall.SessionConfig{
AssetsDir: assetsDir,
ProbeServicesURL: "https://ams-pg.ooni.org/",
ProbeServicesURL: "https://ams-pg-test.ooni.org/",
SoftwareName: "oonimkall-test",
SoftwareVersion: "0.1.0",
StateDir: "../testdata/oonimkall/state",
Expand Down
2 changes: 1 addition & 1 deletion probeservices/probeservices_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func newclient() *probeservices.Client {
MockableLogger: log.Log,
},
model.Service{
Address: "https://ams-pg.ooni.org/",
Address: "https://ams-pg-test.ooni.org/",
Type: "https",
},
)
Expand Down
2 changes: 1 addition & 1 deletion probeservices/urls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

func TestFetchURLListSuccess(t *testing.T) {
client := newclient()
client.BaseURL = "https://ams-pg.ooni.org"
client.BaseURL = "https://ams-pg-test.ooni.org"
config := model.URLListConfig{
Categories: []string{"NEWS", "CULTR"},
CountryCode: "IT",
Expand Down
8 changes: 4 additions & 4 deletions session_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestSessionTorArgsTorBinary(t *testing.T) {
sess, err := NewSession(SessionConfig{
AssetsDir: "testdata",
AvailableProbeServices: []model.Service{{
Address: "https://ams-pg.ooni.org",
Address: "https://ams-pg-test.ooni.org",
Type: "https",
}},
Logger: log.Log,
Expand Down Expand Up @@ -117,7 +117,7 @@ func newSessionForTestingNoLookupsWithProxyURL(t *testing.T, URL *url.URL) *Sess
sess, err := NewSession(SessionConfig{
AssetsDir: "testdata",
AvailableProbeServices: []model.Service{{
Address: "https://ams-pg.ooni.org",
Address: "https://ams-pg-test.ooni.org",
Type: "https",
}},
Logger: log.Log,
Expand Down Expand Up @@ -190,7 +190,7 @@ func TestInitOrchestraClientMaybeRegisterError(t *testing.T) {
sess := newSessionForTestingNoLookups(t)
defer sess.Close()
clnt, err := probeservices.NewClient(sess, model.Service{
Address: "https://ams-pg.ooni.org/",
Address: "https://ams-pg-test.ooni.org/",
Type: "https",
})
if err != nil {
Expand All @@ -215,7 +215,7 @@ func TestInitOrchestraClientMaybeLoginError(t *testing.T) {
sess := newSessionForTestingNoLookups(t)
defer sess.Close()
clnt, err := probeservices.NewClient(sess, model.Service{
Address: "https://ams-pg.ooni.org/",
Address: "https://ams-pg-test.ooni.org/",
Type: "https",
})
if err != nil {
Expand Down

0 comments on commit 4d77bad

Please sign in to comment.