Skip to content

Commit

Permalink
feat(GODT-3015): Fix report bug attachment request parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlejeune74 committed Oct 20, 2023
1 parent 2449db5 commit 2b3fddd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions manager_report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,17 @@ func TestReportBugAsync(t *testing.T) {
require.Equal(t, "1", form.Value["AsyncAttachments"][0])

err = m.ReportBugAttachement(context.Background(), proton.ReportBugAttachmentReq{
ClientType: proton.ClientTypeEmail,
Body: "Comment without any attachment",
Token: *res.Token,
Product: proton.ClientTypeEmail,
Body: "Comment without any attachment",
Token: *res.Token,
})

require.NoError(t, err)

err = m.ReportBugAttachement(context.Background(), proton.ReportBugAttachmentReq{
ClientType: proton.ClientTypeEmail,
Body: "Comment without any attachment",
Token: "not a good token",
Product: proton.ClientTypeEmail,
Body: "Comment without any attachment",
Token: "not a good token",
})

require.Error(t, err)
Expand Down
6 changes: 3 additions & 3 deletions manager_report_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ type ReportBugReq struct {
}

type ReportBugAttachmentReq struct {
ClientType ClientType
Body string
Token string
Product ClientType
Body string
Token string
}

type ReportBugRes struct {
Expand Down

0 comments on commit 2b3fddd

Please sign in to comment.