mirror of
https://github.com/openlibrecommunity/olcrtc.git
synced 2026-05-26 07:08:11 +00:00
chore: replace default jitsi URL with meet1.arbitr.ru
This commit is contained in:
@@ -41,7 +41,7 @@ type Provider struct{}
|
||||
// Engine reports which engine consumes credentials from this auth provider.
|
||||
func (Provider) Engine() string { return "jitsi" }
|
||||
|
||||
const defaultServiceURL = "https://meet.cryptopro.ru"
|
||||
const defaultServiceURL = "https://meet1.arbitr.ru"
|
||||
|
||||
// DefaultServiceURL returns the default Jitsi Meet service URL used by config
|
||||
// defaults and interactive helpers.
|
||||
|
||||
@@ -21,7 +21,7 @@ func TestParseRoomURL(t *testing.T) {
|
||||
room string
|
||||
wantErr bool
|
||||
}{
|
||||
{name: "https url", raw: "https://meet.cryptopro.ru/" + testRoom, host: "meet.cryptopro.ru", room: testRoom},
|
||||
{name: "https url", raw: "https://meet1.arbitr.ru/" + testRoom, host: "meet1.arbitr.ru", room: testRoom},
|
||||
{name: "http url", raw: "http://" + testHost + "/" + testRoom, host: testHost, room: testRoom},
|
||||
{name: "scheme-less", raw: "meet.example.com/" + testRoom, host: "meet.example.com", room: testRoom},
|
||||
{name: "trailing slash", raw: "https://" + testHost + "/" + testRoom + "/", host: testHost, room: testRoom},
|
||||
@@ -54,14 +54,14 @@ func TestParseRoomURL(t *testing.T) {
|
||||
|
||||
func TestProviderIssue(t *testing.T) {
|
||||
creds, err := Provider{}.Issue(context.Background(), auth.Config{
|
||||
RoomURL: "https://meet.cryptopro.ru/olcrtc",
|
||||
RoomURL: "https://meet1.arbitr.ru/olcrtc",
|
||||
Name: "olcrtc-test",
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatalf("Issue: %v", err)
|
||||
}
|
||||
if creds.URL != "meet.cryptopro.ru" {
|
||||
t.Fatalf("URL = %q, want %q", creds.URL, "meet.cryptopro.ru")
|
||||
if creds.URL != "meet1.arbitr.ru" {
|
||||
t.Fatalf("URL = %q, want %q", creds.URL, "meet1.arbitr.ru")
|
||||
}
|
||||
if got := creds.Extra[CredentialKeyRoom]; got != "olcrtc" {
|
||||
t.Fatalf("room = %q, want %q", got, "olcrtc")
|
||||
|
||||
@@ -43,7 +43,7 @@ const (
|
||||
localDNSServer = "127.0.0.1:53"
|
||||
videoHWNone = "none"
|
||||
testClientDeviceID = "client-1"
|
||||
defaultJitsiRoomURL = "https://meet.cryptopro.ru/deadbeef"
|
||||
defaultJitsiRoomURL = "https://meet1.arbitr.ru/deadbeef"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -681,7 +681,7 @@ func realE2ECaseExpectation(carrierName, transportName string) realE2EExpectatio
|
||||
//
|
||||
// Jitsi video-path transports are marked Unstable. They depend on
|
||||
// the external JVB ICE/media path and can flap on self-hosted
|
||||
// instances (e.g. meet.cryptopro.ru): ICE may stay in checking or
|
||||
// instances (e.g. meet1.arbitr.ru): ICE may stay in checking or
|
||||
// the video upstream may be suppressed even though signaling and
|
||||
// the colibri-ws bridge are healthy. Flag the outcome, but don't
|
||||
// fail the suite when these paths flap.
|
||||
@@ -711,7 +711,7 @@ func realE2EExpectationLabel(expectation realE2EExpectation) string {
|
||||
// logUnstableOutcome records the result of an Unstable matrix entry
|
||||
// without failing the test. Unstable combos exist to keep the matrix
|
||||
// honest about transports that flap against a particular carrier
|
||||
// (e.g. seichannel against meet.cryptopro.ru's bandwidth allocator)
|
||||
// (e.g. seichannel against meet1.arbitr.ru's bandwidth allocator)
|
||||
// while still surfacing whether the run happened to pass or fail.
|
||||
func logUnstableOutcome(t *testing.T, label, carrierName, transportName string, err error) {
|
||||
t.Helper()
|
||||
@@ -814,7 +814,7 @@ func realRoomURL(ctx context.Context, t *testing.T, carrierName string) string {
|
||||
return ""
|
||||
case "jitsi":
|
||||
// Jitsi has no notion of "creating" a room - names are conjured
|
||||
// on first join. The default flag points at meet.cryptopro.ru
|
||||
// on first join. The default flag points at meet1.arbitr.ru
|
||||
// by default. When the flag is left at its default value, a
|
||||
// per-process random suffix is appended
|
||||
// to the slug: two participants share a single room by design (one
|
||||
|
||||
@@ -138,7 +138,7 @@ type bridgeOutbound struct {
|
||||
|
||||
// New creates a new Jitsi engine session.
|
||||
//
|
||||
// cfg.URL carries the Jitsi host (e.g. "meet.cryptopro.ru") - populated by the
|
||||
// cfg.URL carries the Jitsi host (e.g. "meet1.arbitr.ru") - populated by the
|
||||
// jitsi auth provider after parsing the user-supplied room URL. cfg.Extra
|
||||
// must contain the room name under the "room" key.
|
||||
func New(_ context.Context, cfg engine.Config) (engine.Session, error) {
|
||||
|
||||
Reference in New Issue
Block a user