- Notifications
You must be signed in to change notification settings - Fork1k
fix(enterprise): update external agent instructions in cli#19411
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -162,11 +162,10 @@ func TestExternalWorkspaces(t *testing.T) { | ||
pty.WriteLine("yes") | ||
// Expect the external agent instructions | ||
pty.ExpectMatch("Please run the following command to attach external agent") | ||
pty.ExpectRegexMatch("curl -fsSL .* | CODER_AGENT_TOKEN=.* sh") | ||
testutil.TryReceive(context.Background(), t,doneChan) | ||
| ||
// Verify the workspace was created | ||
ws, err := member.WorkspaceByOwnerAndName(context.Background(), codersdk.Me, "my-external-workspace", codersdk.WorkspaceOptions{}) | ||
@@ -392,11 +391,10 @@ func TestExternalWorkspaces(t *testing.T) { | ||
assert.NoError(t, errC) | ||
close(done) | ||
}() | ||
pty.ExpectMatch("Please run the following command to attach external agent to the workspace") | ||
pty.ExpectRegexMatch("curl -fsSL .* | CODER_AGENT_TOKEN=.* sh") | ||
cancelFunc() | ||
testutil.TryReceive(context.Background(), t,done) | ||
}) | ||
t.Run("AgentInstructionsJSON", func(t *testing.T) { | ||
@@ -545,11 +543,10 @@ func TestExternalWorkspaces(t *testing.T) { | ||
pty.ExpectMatch("external-agent (linux, amd64)") | ||
// Expect the external agent instructions | ||
pty.ExpectMatch("Please run the following command to attach external agent") | ||
pty.ExpectRegexMatch("curl -fsSL .* | CODER_AGENT_TOKEN=.* sh") | ||
testutil.TryReceive(context.Background(), t,doneChan) | ||
// Verify the workspace was created | ||
ws, err := member.WorkspaceByOwnerAndName(context.Background(), codersdk.Me, "my-external-workspace", codersdk.WorkspaceOptions{}) | ||
Uh oh!
There was an error while loading.Please reload this page.