Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
parthban-db committed Oct 2, 2024
1 parent e22bdd0 commit 44bd71c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions internal/git_credentials_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestAccGitCredentials(t *testing.T) {
require.NoError(t, err)
}

cr, err := w.GitCredentials.Create(ctx, workspace.CreateCredentials{
cr, err := w.GitCredentials.Create(ctx, workspace.CreateCredentialsRequest{
GitProvider: "gitHub",
GitUsername: "test",
PersonalAccessToken: "test",
Expand All @@ -45,7 +45,7 @@ func TestAccGitCredentials(t *testing.T) {
require.NoError(t, err)
})

err = w.GitCredentials.Update(ctx, workspace.UpdateCredentials{
err = w.GitCredentials.Update(ctx, workspace.UpdateCredentialsRequest{
CredentialId: cr.CredentialId,
GitProvider: "gitHub",
GitUsername: RandomEmail(),
Expand Down
4 changes: 2 additions & 2 deletions internal/repos_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestAccRepos(t *testing.T) {

// Synthesize unique path for this checkout in this user's home.
root := RandomName(fmt.Sprintf("/Repos/%s/tf-", me(t, w).UserName))
ri, err := w.Repos.Create(ctx, workspace.CreateRepo{
ri, err := w.Repos.Create(ctx, workspace.CreateRepoRequest{
Path: root,
Url: "https://github.com/shreyas-goenka/empty-repo.git",
Provider: "github",
Expand All @@ -36,7 +36,7 @@ func TestAccRepos(t *testing.T) {
})

assert.Equal(t, "main", ri.Branch)
err = w.Repos.Update(ctx, workspace.UpdateRepo{
err = w.Repos.Update(ctx, workspace.UpdateRepoRequest{
RepoId: ri.Id,
Branch: "foo",
})
Expand Down
2 changes: 1 addition & 1 deletion service/workspace/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func ExampleReposAPI_GetByPath_checkoutBranchByPath() {
panic(err)
}
// because you can update repo only by ID, not by path
err = w.Repos.Update(ctx, workspace.UpdateRepo{
err = w.Repos.Update(ctx, workspace.UpdateRepoRequest{
RepoId: repo.Id,
Branch: "v1.4.18",
})
Expand Down
8 changes: 4 additions & 4 deletions service/workspace/git_credentials_usage_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions service/workspace/repos_usage_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 44bd71c

Please sign in to comment.