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

Pivotal ID #177423348: PMC integration test #356

Merged
merged 13 commits into from
Apr 6, 2021

Conversation

Juan-EBI
Copy link
Contributor

Copy link
Contributor

@jhoanmanuelms jhoanmanuelms left a 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 {
Copy link
Contributor

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?

Copy link
Contributor Author

@Juan-EBI Juan-EBI Mar 23, 2021

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
Copy link
Contributor

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)
Copy link
Contributor

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 {
Copy link
Contributor

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) {
Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

@jhoanmanuelms jhoanmanuelms left a comment

Choose a reason for hiding this comment

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

LGTM

@Juan-EBI Juan-EBI merged commit 03daa14 into master Apr 6, 2021
@jhoanmanuelms jhoanmanuelms deleted the chore/pivotal-177423348-PMC-integration-test branch April 15, 2021 14:16
jhoanmanuelms added a commit that referenced this pull request Apr 15, 2021
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>
jhoanmanuelms added a commit that referenced this pull request Apr 16, 2021
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>
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