Skip to content

Commit

Permalink
Fix build failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchell-as committed Dec 14, 2023
1 parent 122f529 commit c8a9fa4
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions pkg/platform/api/buildplanner/request/createproject.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ mutation ($organization: String!, $project: String!, $private: Boolean!, $expr:
}`
}

func (c *createProject) Vars() map[string]interface{} {
return c.vars
func (c *createProject) Vars() (map[string]interface{}, error) {
return c.vars, nil
}
4 changes: 2 additions & 2 deletions pkg/platform/api/buildplanner/request/mergecommit.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ mutation ($organization: String!, $project: String!, $targetRef: String!, $other
`
}

func (b *mergeCommit) Vars() map[string]interface{} {
return b.vars
func (b *mergeCommit) Vars() (map[string]interface{}, error) {
return b.vars, nil
}
4 changes: 2 additions & 2 deletions pkg/platform/api/buildplanner/request/revertcommit.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ mutation ($organization: String!, $project: String!, $commitId: String!, $target
}`
}

func (r *revertCommit) Vars() map[string]interface{} {
return r.vars
func (r *revertCommit) Vars() (map[string]interface{}, error) {
return r.vars, nil
}
4 changes: 2 additions & 2 deletions test/integration/import_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ func (suite *ImportIntegrationTestSuite) TestImport() {
ts := e2e.New(suite.T(), false)
defer ts.Close()

username, _ := ts.CreateNewUser()
namespace := fmt.Sprintf("%s/%s", username, "Python3")
user := ts.CreateNewUser()
namespace := fmt.Sprintf("%s/%s", user.Username, "Python3")

cp := ts.Spawn("init", "--language", "python", namespace, ts.Dirs.Work)
cp.Expect("successfully initialized")
Expand Down
10 changes: 5 additions & 5 deletions test/integration/publish_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ namespace: org/{{.Username}}
version: 2.3.4
description: im-a-description
authors:
- name: author-name
- name: author-name
email: [email protected]
`),
nil,
Expand Down Expand Up @@ -168,7 +168,7 @@ namespace: org/{{.Username}}
version: 2.3.4
description: im-a-description
authors:
- name: author-name
- name: author-name
email: [email protected]
`),
nil,
Expand Down Expand Up @@ -202,7 +202,7 @@ namespace: org/{{.Username}}
version: 2.3.4
description: im-a-description
authors:
- name: author-name
- name: author-name
email: [email protected]
`),
true,
Expand Down Expand Up @@ -363,7 +363,7 @@ authors:
}

cp := ts.SpawnWithOpts(
e2e.WithArgs(append([]string{"publish"}, args...)...),
e2e.OptArgs(append([]string{"publish"}, args...)...),
)

if inv.expect.immediateOutput != "" {
Expand Down Expand Up @@ -398,7 +398,7 @@ authors:

cp.Expect("Y/n")

snapshot := cp.MatchState().TermState.String()
snapshot := cp.Snapshot()
rx := regexp.MustCompile(`(?s)Publish following ingredient\?(.*)\(Y/n`)
match := rx.FindSubmatch([]byte(snapshot))
suite.Require().NotNil(match, fmt.Sprintf("Could not match '%s' against: %s", rx.String(), snapshot))
Expand Down

0 comments on commit c8a9fa4

Please sign in to comment.