Skip to content

chore: Remove extra opt and fix 'proxy' alias #7413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 5, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
proxy -> wsproxy
  • Loading branch information
Emyrk committed May 5, 2023
commit f6bdcd6fa2e2ec8bcdf10bc1d303f70e98583804
6 changes: 3 additions & 3 deletions enterprise/cli/workspaceproxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func Test_ProxyCRUD(t *testing.T) {
ctx := testutil.Context(t, testutil.WaitLong)
inv, conf := newCLI(
t,
"proxy", "create",
"wsproxy", "create",
"--name", expectedName,
"--display-name", "Test Proxy",
"--icon", "/emojis/1f4bb.png",
Expand All @@ -68,7 +68,7 @@ func Test_ProxyCRUD(t *testing.T) {
// Fetch proxies and check output
inv, conf = newCLI(
t,
"proxy", "ls",
"wsproxy", "ls",
)

pty = ptytest.New(t)
Expand Down Expand Up @@ -118,7 +118,7 @@ func Test_ProxyCRUD(t *testing.T) {

inv, conf := newCLI(
t,
"proxy", "delete", expectedName,
"wsproxy", "delete", expectedName,
)

pty := ptytest.New(t)
Expand Down
4 changes: 2 additions & 2 deletions scripts/develop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ fatal() {
# Attempt to delete the proxy first, in case it already exists.
"${CODER_DEV_SHIM}" proxy delete local-proxy || true
# Create the proxy
proxy_session_token=$("${CODER_DEV_SHIM}" proxy create --name=local-proxy --display-name="Local Proxy" --icon="/emojis/1f4bb.png" --only-token)
proxy_session_token=$("${CODER_DEV_SHIM}" wsproxy create --name=local-proxy --display-name="Local Proxy" --icon="/emojis/1f4bb.png" --only-token)
# Start the proxy
start_cmd PROXY "" "${CODER_DEV_SHIM}" proxy server --http-address=localhost:3010 --proxy-session-token="${proxy_session_token}" --primary-access-url=http://localhost:3000
start_cmd PROXY "" "${CODER_DEV_SHIM}" wsproxy server --http-address=localhost:3010 --proxy-session-token="${proxy_session_token}" --primary-access-url=http://localhost:3000
) || echo "Failed to create workspace proxy. No workspace proxy created."
fi

Expand Down