Skip to content

OCM: creating an invite token should return 201 #4838

Description

@butonic

we seem to use the wrong response code when creating an ocm invite token. I wanted to change it, but the tests say we should return a 200 Status code:

• [FAILED] [8.186 seconds]
ocm invitation workflow clients use the http endpoints exposed by sciencemesh generate the token from http apis [It] succeeds
/drone/src/tests/integration/grpc/ocm_invitation_test.go:519

  [FAILED] Expected
      <int>: 201
  to equal
      <int>: 200
  In [It] at: /drone/src/tests/integration/grpc/ocm_invitation_test.go:525 @ 09/05/24 09:17:45.026
------------------------------

While I strongly disagree. I'll revert that change and rerun the CI of #4836. For now.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions