mirror of
https://github.com/coder/coder.git
synced 2025-07-08 11:39:50 +00:00
chore: add test for workspace proxy derp meshing (#12220)
- Reworks the proxy registration loop into a struct (so I can add a `RegisterNow` method) - Changes the proxy registration loop interval to 15s (previously 30s) - Adds test which tests bidirectional DERP meshing on all possible paths between 6 workspace proxy replicas Related to https://github.com/coder/customers/issues/438
This commit is contained in:
@ -99,7 +99,7 @@ func TestRegions(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
|
||||
const proxyName = "hello"
|
||||
_ = coderdenttest.NewWorkspaceProxy(t, api, client, &coderdenttest.ProxyOptions{
|
||||
_ = coderdenttest.NewWorkspaceProxyReplica(t, api, client, &coderdenttest.ProxyOptions{
|
||||
Name: proxyName,
|
||||
AppHostname: appHostname + ".proxy",
|
||||
})
|
||||
@ -734,7 +734,7 @@ func TestReconnectingPTYSignedToken(t *testing.T) {
|
||||
proxyURL, err := url.Parse(fmt.Sprintf("https://%s.com", namesgenerator.GetRandomName(1)))
|
||||
require.NoError(t, err)
|
||||
|
||||
_ = coderdenttest.NewWorkspaceProxy(t, api, client, &coderdenttest.ProxyOptions{
|
||||
_ = coderdenttest.NewWorkspaceProxyReplica(t, api, client, &coderdenttest.ProxyOptions{
|
||||
Name: namesgenerator.GetRandomName(1),
|
||||
ProxyURL: proxyURL,
|
||||
AppHostname: "*.sub.example.com",
|
||||
|
Reference in New Issue
Block a user