-
Notifications
You must be signed in to change notification settings - Fork 1
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
Pivotal ID #177423348: PMC integration test #356
Pivotal ID #177423348: PMC integration test #356
Conversation
…services into chore/pivotal-177423348-PMC-integration-test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of questions
format.delimiter = TAB | ||
format.comment = TSV_COMMENT | ||
skipEmptyLines = false | ||
private fun createParser(): CSVFormat { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you removing these changes back? I think these are the fix for https://www.pivotaltracker.com/story/show/174642598 right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the reason uniVocity/univocity-parsers#454 now we will need to scape character quotes if we want then to be interpreted as quotes and not page tab quote, perhaps in the future we can change our quote character per something more strange as $%
@@ -1 +1 @@ | |||
coverage=1 | |||
coverage=0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😢
return Retrofit.Builder() | ||
.baseUrl("http://www.ft-loading.europepmc.org") | ||
.baseUrl(properties.pmcBaseUrl) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
internal const val ACC_NO = "S-123SUCCESS" | ||
internal val SUB_ATTRIBUTE = Attribute("Title", "Submission title") | ||
|
||
val submissionBody = jsonObj { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps these chould be in a separated factory file?
@TestInstance(TestInstance.Lifecycle.PER_CLASS) | ||
@ContextConfiguration(classes = [PersistenceConfig::class]) | ||
@ExtendWith(TemporaryFolderExtension::class) | ||
internal class PmcSubmissionProcessorTest(private val tempFolder: TemporaryFolder) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤘
@@ -0,0 +1 @@ | |||
that is the content |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couldn't we just create these test files with the temporary folder extension?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes no point to add this a resource
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…services into chore/pivotal-177423348-PMC-integration-test
Feature: * Pivotal ID # 177304040: PT Submit Migration Operation (#362) Bugfix: * Pivotal ID # 177536825: Add handler for SubmissionNotFoundException to response with the correct http status code (#364) * Pivotal # 177647985: MD5 Calculation For Big Files (#366) * Pivotal ID #177756846: Allow to bypass toxic risk validation when QMRF-ID attribute (#370) Chore: * Pivotal ID #177423348: PMC integration test (#356) * Pivotal ID # 177413307: Report Submissions With Errors (#368) Co-authored-by: Juan <jcamilorada@ebi.ac.uk> Co-authored-by: Néstor Diaz <ndiaz@ebi.ac.uk>
Feature: * Pivotal ID # 177304040: PT Submit Migration Operation (#362) Bugfix: * Pivotal ID # 177536825: Add handler for SubmissionNotFoundException to response with the correct http status code (#364) * Pivotal # 177647985: MD5 Calculation For Big Files (#366) * Pivotal ID #177756846: Allow to bypass toxic risk validation when QMRF-ID attribute (#370) Chore: * Pivotal ID #177423348: PMC integration test (#356) * Pivotal ID # 177413307: Report Submissions With Errors (#368) Co-authored-by: Juan <jcamilorada@ebi.ac.uk> Co-authored-by: Néstor Diaz <ndiaz@ebi.ac.uk>
https://www.pivotaltracker.com/story/show/177423348