Skip to content

Commit

Permalink
changed the sample file, changed author name
Browse files Browse the repository at this point in the history
  • Loading branch information
aaravm committed Jul 4, 2024
1 parent 198e0f8 commit 206c6c4
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "ga4gh-sdk"
version = "0.1.0"
authors = ["Aarav Mehta <[email protected]>", "ELIXIR Cloud & AAI <[email protected]>", "GENXT <[email protected]>"]
authors = ["Aarav Mehta <[email protected]>", "Pavel Nikonorov", "ELIXIR Cloud & AAI <[email protected]>"]
edition = "2021"
description = "Generic SDK and CLI for GA4GH API services"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion lib/src/tes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ mod tests {
return Err(e);
}
};
let file_path = "./tests/grape.tes".to_string();
let file_path = "./tests/sample.tes".to_string();
let task_json = std::fs::read_to_string(file_path).expect("Unable to read file");
let task: TesTask = serde_json::from_str(&task_json).expect("JSON was not well-formatted");

Expand Down
6 changes: 5 additions & 1 deletion tests/Readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# A folder for adding the files being used in unit tests

grape.tes: a sample file containing JSON task data for the GA4GH [Task Execution Service](https://github.com/ga4gh/task-execution-schemas) in the file lib/src/tes/mod.rs. Notably, it has placeholders like "${AWS_ACCESS_KEY_ID}" which is out of the standard and implies implementing a pre-processor, might be useful to note and implement in future as it avoids storing credentials in such .tes files

sample.tes: This is a sample file, taken from the [funnel docs](https://ohsu-comp-bio.github.io/funnel/docs/tasks/), and this file is being used in the file lib/src/tes/mod.rs


grape.tes: a sample file containing JSON task data for the GA4GH [Task Execution Service](https://github.com/ga4gh/task-execution-schemas), which can be used in the file lib/src/tes/mod.rs instead of sample.tes. Notably, it has placeholders like "${AWS_ACCESS_KEY_ID}" which is out of the standard and implies implementing a pre-processor, might be useful to note and implement in future as it avoids storing credentials in such .tes files
16 changes: 16 additions & 0 deletions tests/sample.tes
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "Hello world",
"inputs": [{
"url": "s3://funnel-bucket/hello.txt",
"path": "/inputs/hello.txt"
}],
"outputs": [{
"url": "s3://funnel-bucket/output.txt",
"path": "/outputs/stdout"
}],
"executors": [{
"image": "alpine",
"command": ["cat", "/inputs/hello.txt"],
"stdout": "/outputs/stdout"
}]
}

0 comments on commit 206c6c4

Please sign in to comment.