Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds ensign mock to tenant test #218

Merged
merged 2 commits into from Feb 15, 2023
Merged

Adds ensign mock to tenant test #218

merged 2 commits into from Feb 15, 2023

Conversation

daniellemaxwell
Copy link
Contributor

@daniellemaxwell daniellemaxwell commented Feb 15, 2023

Scope of changes

Adds Ensign mock to the tenant test.

Fixes SC-13767

Type of change

  • new feature
  • bug fix
  • documentation
  • testing
  • technical debt
  • other (describe)

Acceptance criteria

Describe how reviewers can test this change to be sure that it works correctly. Add a checklist if possible.

Author checklist

  • I have manually tested the change and/or added automation in the form of unit tests or integration tests
  • I have updated the dependencies list
  • I have recompiled and included new protocol buffers to reflect changes I made
  • I have added new test fixtures as needed to support added tests
  • Check this box if a reviewer can merge this pull request after approval (leave it unchecked if you want to do it yourself)
  • I have moved the associated Shortcut story to "Ready for Review"

Reviewer(s) checklist

  • Any new user-facing content that has been added for this PR has been QA'ed to ensure correct grammar, spelling, and understandability.
  • Are there any TODOs in this PR that should be turned into stories?

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #13767: Add Ensign Mock to Tenant Tests.

@@ -53,6 +55,9 @@ func (suite *tenantTestSuite) SetupSuite() {
// Ensure Quarterdeck returns a 200 on status so Tenant knows it's ready
suite.quarterdeck.OnStatus(mock.UseStatus(http.StatusOK))

// Start a server to handle mock requests to Ensign
suite.ensign = emock.New(nil)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The New method doesn't return an error. Benjamin confirmed that it doesn't need to since there aren't any side effects and an interface isn't required.

Copy link
Contributor

@pdeziel pdeziel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@pdeziel pdeziel merged commit 97a69ef into main Feb 15, 2023
@pdeziel pdeziel deleted the sc-13767/ensign-mock branch February 15, 2023 21:39
daniellemaxwell added a commit that referenced this pull request Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants