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

43 nested json handling #101

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

sitapriyamoorthi
Copy link
Collaborator

unit test to test nested jsons.
Closes #43

@sitapriyamoorthi sitapriyamoorthi self-assigned this Feb 5, 2025
@sitapriyamoorthi sitapriyamoorthi linked an issue Feb 5, 2025 that may be closed by this pull request
@sitapriyamoorthi sitapriyamoorthi added the unit test Adding or modifying a unit test label Feb 6, 2025
@sitapriyamoorthi
Copy link
Collaborator Author

@tefirman for this PR we are testing if the runtime variables that have been provided in a json format are being provided. Which is basically testing if runtime variables can be given to a WDL from a JSON. However if we want to test if Cromwell is actually getting the runtime variables I am asking for I think we will have to write a slightly different unit test. Both unit tests in my opinion are valid, independent and needed.

@tefirman
Copy link
Collaborator

tefirman commented Feb 7, 2025

@tefirman for this PR we are testing if the runtime variables that have been provided in a json format are being provided. Which is basically testing if runtime variables can be given to a WDL from a JSON. However if we want to test if Cromwell is actually getting the runtime variables I am asking for I think we will have to write a slightly different unit test. Both unit tests in my opinion are valid, independent and needed.

@sitapriyamoorthi , I think you might be referring to #98 ?

Copy link
Collaborator

@tefirman tefirman left a comment

Choose a reason for hiding this comment

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

Couple small changes, but works great locally and on PROOF.

}

runtime {
docker: "ubuntu:latest"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
docker: "ubuntu:latest"
docker: "ubuntu:20.04"

Probably want to stay away from latest tag.

allSampleInfo="~{sample.sampleName} | ~{sample.aboutSample} | ~{sample.sampleDescription} | ~{sample.details.experimentType} | ~{sample.details.prepMethod} | ~{sample.details.tissueType}"

# Output the concatenated sample info to a file
echo ${allSampleInfo} > ~{base_file_name}.allSampleInfo.txt
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
echo ${allSampleInfo} > ~{base_file_name}.allSampleInfo.txt
echo "${allSampleInfo}" > ~{base_file_name}.allSampleInfo.txt

Adding quotations to account for spaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unit test Adding or modifying a unit test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nested JSON handling
2 participants