##### APPLICANT V2 End Point for Staging Environment using Port 443 by default #####

. runtestv2.sh PrepareSubmissionXml client=SubmitApplicationClient config_xml=../Config/grantsws-applicant-config.xml
. runtestv2.sh PrepareSubmissionXml client=SubmitApplicationAsThirdPartyClient config_xml=../Config/grantsws-applicant-config.xml

. runtestv2.sh AuthenticateAORClient url_prefix=https://stagingws.grants.gov config_xml=../Config/grantsws-applicant-config.xml
. runtestv2.sh SubmitApplicationClient url_prefix=https://stagingws.grants.gov config_xml=../Config/grantsws-applicant-config.xml
. runtestv2.sh SubmitApplicationAsThirdPartyClient url_prefix=https://stagingws.grants.gov config_xml=../Config/grantsws-applicant-config.xml

. runtestv2.sh GetApplicationInfoClient url_prefix=https://stagingws.grants.gov gg_tracking_num=GRANT00556249
. runtestv2.sh GetApplicationInfoAsThirdPartyClient url_prefix=https://stagingws.grants.gov gg_tracking_num=GRANT00556249

# valid command line parameters: cfda | oppid | compid
. runtestv2.sh GetApplicationZipClient url_prefix=https://stagingws.grants.gov gg_tracking_num=GRANT00556249

# R16.2.1 New Web Services:
# valid filters: Choice of (packageid) OR (cfdanumber | opportunitynumber | competitionid) 
. runtestv2.sh GetOpportunityListClient url_prefix=https://stagingws.grants.gov packageid=PKG12345678
. runtestv2.sh GetOpportunityListClient url_prefix=https://stagingws.grants.gov cfdanumber=10.001 opportunitynumber=RG-07252011-OPP36 competitionid=COMPETITION-ID-1

##############################################################################
# valid filters: status | opportunitynumber | packageid | submissiontitle | grantsgovtrackingnumber
# valid 'Status' filter values: "Receiving" | "Received" | "Processing" | "Validated" | "Rejected with Errors" | "Received by Agency" | "Agency Tracking Number Assigned"
# NOTE(S): 
# - 'Status' filter values that contain spaces need to be wrapped in "" and are case-sensitive
# - filter values are case-sensitive
# - filters without values are ignored
. runtestv2.sh GetSubmissionListClient url_prefix=https://stagingws.grants.gov status="Received by Agency"
. runtestv2.sh GetSubmissionListAsThirdPartyClient url_prefix=https://stagingws.grants.gov status="Received by Agency"
##############################################################################

# R18.2.0 New Web Services:
. runtestv2.sh AuthenticateAORExpandedClient url_prefix=https://stagingws.grants.gov config_xml=../Config/grantsws-applicant-config.xml
. runtestv2.sh SubmitApplicationAsThirdPartyExpandedClient url_prefix=https://stagingws.grants.gov config_xml=../Config/grantsws-applicant-config.xml