This is an automated email from the ASF dual-hosted git repository. smarru pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/airavata-sandbox.git
commit 79bdef76b3e0b00827110493a3e139bb47b71eb0 Author: Saurabh Agrawal <[email protected]> AuthorDate: Sat Dec 16 00:56:42 2017 -0500 Testing files --- cwl-workflows/requirements.txt | 3 +++ cwl-workflows/test.py | 25 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/cwl-workflows/requirements.txt b/cwl-workflows/requirements.txt new file mode 100644 index 0000000..8501fa8 --- /dev/null +++ b/cwl-workflows/requirements.txt @@ -0,0 +1,3 @@ +requests==2.13.0 +six==1.10.0 +thrift==0.10.0 diff --git a/cwl-workflows/test.py b/cwl-workflows/test.py new file mode 100644 index 0000000..34df387 --- /dev/null +++ b/cwl-workflows/test.py @@ -0,0 +1,25 @@ +# Test script for api.py + +import api +import configparser +import sys + + +def main(): + """Main function + """ + config_file = sys.argv[1] + config = configparser.ConfigParser() + config.read(config_file) + username = config['credentials']['Username'] + access_token = config['credentials']['AccessToken'] + gateway_id = config['config']['GatewayID'] + hostname = config['config']['HostName'] + port = config['config']['Port'] + experiment_id = config['config']['ExperimentID'] + + api.launch_experiment(hostname, port, username, access_token, experiment_id, gateway_id) + + +if __name__ == '__main__': + main() -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
