mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
[server] update go api
This commit is contained in:
parent
f70b3c775c
commit
9f9c6761b2
@ -1986,8 +1986,11 @@ type UpdateOwnAuthProviderParams struct {
|
|||||||
|
|
||||||
// CreateWorkspaceOptions is the CreateWorkspaceOptions message type
|
// CreateWorkspaceOptions is the CreateWorkspaceOptions message type
|
||||||
type CreateWorkspaceOptions struct {
|
type CreateWorkspaceOptions struct {
|
||||||
ContextURL string `json:"contextUrl,omitempty"`
|
ContextURL string `json:"contextUrl,omitempty"`
|
||||||
Mode string `json:"mode,omitempty"`
|
IgnoreRunningWorkspaceOnSameCommit bool `json:"ignoreRunningWorkspaceOnSameCommit,omitemopty"`
|
||||||
|
IgnoreRunningPrebuild bool `json:"ignoreRunningPrebuild,omitemopty"`
|
||||||
|
AllowUsingPreviousPrebuilds bool `json:"allowUsingPreviousPrebuilds,omitemopty"`
|
||||||
|
ForceDefaultConfig bool `json:"forceDefaultConfig,omitemopty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteOwnAuthProviderParams is the DeleteOwnAuthProviderParams message type
|
// DeleteOwnAuthProviderParams is the DeleteOwnAuthProviderParams message type
|
||||||
|
|||||||
@ -257,8 +257,9 @@ func LaunchWorkspaceFromContextURL(t *testing.T, ctx context.Context, contextURL
|
|||||||
|
|
||||||
t.Logf("attemp to create the workspace: %s", contextURL)
|
t.Logf("attemp to create the workspace: %s", contextURL)
|
||||||
resp, err := server.CreateWorkspace(cctx, &protocol.CreateWorkspaceOptions{
|
resp, err := server.CreateWorkspace(cctx, &protocol.CreateWorkspaceOptions{
|
||||||
ContextURL: contextURL,
|
ContextURL: contextURL,
|
||||||
Mode: "force-new",
|
IgnoreRunningPrebuild: true,
|
||||||
|
IgnoreRunningWorkspaceOnSameCommit: true,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, xerrors.Errorf("cannot start workspace: %q", err)
|
return nil, nil, xerrors.Errorf("cannot start workspace: %q", err)
|
||||||
|
|||||||
@ -67,8 +67,9 @@ func TestStartWorkspace(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resp, err := server.CreateWorkspace(ctx, &protocol.CreateWorkspaceOptions{
|
resp, err := server.CreateWorkspace(ctx, &protocol.CreateWorkspaceOptions{
|
||||||
ContextURL: "github.com/gitpod-io/gitpod",
|
ContextURL: "github.com/gitpod-io/gitpod",
|
||||||
Mode: "force-new",
|
IgnoreRunningPrebuild: true,
|
||||||
|
IgnoreRunningWorkspaceOnSameCommit: true,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("cannot start workspace: %q", err)
|
t.Fatalf("cannot start workspace: %q", err)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user