Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Aug 15, 2024
1 parent 4397bd4 commit f10c006
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func getOCMEndpoint(originProvider *ocmprovider.ProviderInfo) (string, error) {
func (s *service) AcceptInvite(ctx context.Context, req *invitepb.AcceptInviteRequest) (*invitepb.AcceptInviteResponse, error) {
token, err := s.repo.GetToken(ctx, req.InviteToken.Token)
if err != nil {
if errors.Is(err, ocmd.ErrTokenInvalid) {
if errors.Is(err, invite.ErrTokenNotFound) {
return &invitepb.AcceptInviteResponse{
Status: status.NewInvalid(ctx, "token invalid or not found"),
}, nil
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/grpc/ocm_invitation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ var _ = Describe("ocm invitation workflow", func() {
})
})

Describe("marie accept a not existing token", func() {
Describe("marie accept a non existing token", func() {
var cleanup func()
BeforeEach(func() {
variables, cleanup, err = initData(driver, nil, nil)
Expand All @@ -276,7 +276,7 @@ var _ = Describe("ocm invitation workflow", func() {
It("will not complete the invitation workflow", func() {
forwardRes, err := cesnetgw.ForwardInvite(ctxMarie, &invitepb.ForwardInviteRequest{
InviteToken: &invitepb.InviteToken{
Token: "not-existing-token",
Token: "non-existing-token",
},
OriginSystemProvider: cernbox,
})
Expand Down

0 comments on commit f10c006

Please sign in to comment.