Skip to content

Mock Mascot servlet for testing - #1077

Merged
labkey-adam merged 3 commits into
developfrom
fb_mascot
Apr 17, 2020
Merged

Mock Mascot servlet for testing#1077
labkey-adam merged 3 commits into
developfrom
fb_mascot

Conversation

@labkey-adam

@labkey-adam labkey-adam commented Apr 17, 2020

Copy link
Copy Markdown
Contributor

Rationale

The MS2 module includes integration with the Mascot search engine, but LabKey doesn't have a license to a Mascot server, so we have no way to test that integration. MockMascotServlet mimics a Mascot server by implementing a couple APIs that MascotClientImpl invokes. The primary motivation was to provide a way to test the only code in the product still using the 13-year-old commons HttpClient. With these tests in place, we can migrate this code to a modern HTTP library with confidence. See MascotClientImpl.TestCase.

Related Pull Requests

Changes

  • Add MockMascotServlet and MockMascotServletContextListener

Make Mascot TestCase work on TeamCity

@labkey-jeckels labkey-jeckels left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One suggestion, but no further review needed.

Comment thread devtools/src/org/labkey/devtools/mascot/MockMascotServlet.java Outdated
@labkey-adam
labkey-adam merged commit 03dc281 into develop Apr 17, 2020
@labkey-adam
labkey-adam deleted the fb_mascot branch April 17, 2020 20:11
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.

2 participants