From 2310844153c7121a36ff1a7176c40dad81f3e135 Mon Sep 17 00:00:00 2001 From: Nathan Ockerman Date: Thu, 10 Jan 2019 14:35:51 -0800 Subject: [PATCH] Replace sensitive data values to ENV variables (#10) --- test/cassettes/test_client_block_execution.yml | 8 ++++---- test/cassettes/test_get_syspro_version.yml | 8 ++++---- test/cassettes/test_logoff_error.yml | 8 ++++---- test/cassettes/test_logon.yml | 12 ++++++------ test/cassettes/test_logon_error.yml | 10 +++++----- test/cassettes/test_por_query.yml | 142 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------- test/cassettes/test_query_browse.yml | 78 ------------------------------------------------------------------------------ test/cassettes/test_query_fetch.yml | 60 +++++++++++++++++++++++++++++++----------------------------- test/cassettes/test_query_query.yml | 28 ++++++++++++++-------------- test/cassettes/test_sor_query.yml | 57 ++++++++++++++++++++++++++++++--------------------------- test/cassettes/test_successful_logoff.yml | 22 +++++++++++----------- test/logoff_test.rb | 6 +++--- test/logon_test.rb | 6 +++--- test/por_test.rb | 7 ++++--- test/query_test.rb | 7 ++++--- test/sor_test.rb | 8 +++++--- test/test_helper.rb | 5 +++-- 17 files changed, 203 insertions(+), 269 deletions(-) delete mode 100644 test/cassettes/test_query_browse.yml diff --git a/test/cassettes/test_client_block_execution.yml b/test/cassettes/test_client_block_execution.yml index 436eb8b..201a84a 100644 --- a/test/cassettes/test_client_block_execution.yml +++ b/test/cassettes/test_client_block_execution.yml @@ -20,17 +20,17 @@ http_interactions: code: 200 message: OK headers: - Content-Length: - - '7' Content-Type: - application/octet-stream Server: - Microsoft-HTTPAPI/2.0 Date: - - Wed, 09 Jan 2019 00:28:44 GMT + - Wed, 09 Jan 2019 22:58:07 GMT + Content-ength: + - '7' body: encoding: UTF-8 string: 7.0.0.6 http_version: - recorded_at: Wed, 09 Jan 2019 00:28:43 GMT + recorded_at: Wed, 09 Jan 2019 22:58:05 GMT recorded_with: VCR 4.0.0 diff --git a/test/cassettes/test_get_syspro_version.yml b/test/cassettes/test_get_syspro_version.yml index 436eb8b..a194ad1 100644 --- a/test/cassettes/test_get_syspro_version.yml +++ b/test/cassettes/test_get_syspro_version.yml @@ -20,17 +20,17 @@ http_interactions: code: 200 message: OK headers: - Content-Length: - - '7' Content-Type: - application/octet-stream Server: - Microsoft-HTTPAPI/2.0 Date: - - Wed, 09 Jan 2019 00:28:44 GMT + - Wed, 09 Jan 2019 22:58:11 GMT + Content-ength: + - '7' body: encoding: UTF-8 string: 7.0.0.6 http_version: - recorded_at: Wed, 09 Jan 2019 00:28:43 GMT + recorded_at: Wed, 09 Jan 2019 22:58:09 GMT recorded_with: VCR 4.0.0 diff --git a/test/cassettes/test_logoff_error.yml b/test/cassettes/test_logoff_error.yml index d284688..c67beac 100644 --- a/test/cassettes/test_logoff_error.yml +++ b/test/cassettes/test_logoff_error.yml @@ -20,17 +20,17 @@ http_interactions: code: 200 message: OK headers: - Content-Length: - - '72' Content-Type: - application/octet-stream Server: - Microsoft-HTTPAPI/2.0 Date: - - Wed, 09 Jan 2019 00:28:31 GMT + - Wed, 09 Jan 2019 22:58:07 GMT + Content-ength: + - '72' body: encoding: UTF-8 string: 'ERROR: Unable to read the SYSPRO base directory registry string BaseDir8' http_version: - recorded_at: Wed, 09 Jan 2019 00:28:30 GMT + recorded_at: Wed, 09 Jan 2019 22:58:05 GMT recorded_with: VCR 4.0.0 diff --git a/test/cassettes/test_logon.yml b/test/cassettes/test_logon.yml index a994d28..e914747 100644 --- a/test/cassettes/test_logon.yml +++ b/test/cassettes/test_logon.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=Piperita2018 + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=&CompanyPassword=&Operator=&OperatorPassword= body: encoding: US-ASCII string: '' @@ -20,17 +20,17 @@ http_interactions: code: 200 message: OK headers: - Content-Length: - - '36' Content-Type: - application/octet-stream Server: - Microsoft-HTTPAPI/2.0 Date: - - Wed, 09 Jan 2019 00:28:38 GMT + - Wed, 09 Jan 2019 22:58:07 GMT + Content-ength: + - '36' body: encoding: UTF-8 - string: '77094D60E26B934D8280505BAF8C262400 ' + string: '8513E1BCC242674D9F3CC6CD27658BFA00 ' http_version: - recorded_at: Wed, 09 Jan 2019 00:28:37 GMT + recorded_at: Wed, 09 Jan 2019 22:58:05 GMT recorded_with: VCR 4.0.0 diff --git a/test/cassettes/test_logon_error.yml b/test/cassettes/test_logon_error.yml index 9a301b2..3e78871 100644 --- a/test/cassettes/test_logon_error.yml +++ b/test/cassettes/test_logon_error.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=bad_password + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=&CompanyPassword=&Operator=&OperatorPassword=bad_password body: encoding: US-ASCII string: '' @@ -20,17 +20,17 @@ http_interactions: code: 200 message: OK headers: - Content-Length: - - '32' Content-Type: - application/octet-stream Server: - Microsoft-HTTPAPI/2.0 Date: - - Wed, 09 Jan 2019 00:28:39 GMT + - Wed, 09 Jan 2019 22:58:07 GMT + Content-ength: + - '32' body: encoding: UTF-8 string: 'ERROR: Invalid operator password' http_version: - recorded_at: Wed, 09 Jan 2019 00:28:39 GMT + recorded_at: Wed, 09 Jan 2019 22:58:05 GMT recorded_with: VCR 4.0.0 diff --git a/test/cassettes/test_por_query.yml b/test/cassettes/test_por_query.yml index 2ead0b4..2f50ecc 100644 --- a/test/cassettes/test_por_query.yml +++ b/test/cassettes/test_por_query.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=Piperita2018 + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=&CompanyPassword=&Operator=&OperatorPassword= body: encoding: US-ASCII string: '' @@ -20,22 +20,22 @@ http_interactions: code: 200 message: OK headers: - Content-Length: - - '36' Content-Type: - application/octet-stream Server: - Microsoft-HTTPAPI/2.0 Date: - - Wed, 09 Jan 2019 00:28:34 GMT + - Wed, 09 Jan 2019 22:58:03 GMT + Content-ength: + - '36' body: encoding: UTF-8 - string: 'E4B229FC9C2F7A4BA70D10AF87DBB35600 ' + string: 'E90218291FD44948B84CD2C434738C9800 ' http_version: - recorded_at: Wed, 09 Jan 2019 00:28:33 GMT + recorded_at: Wed, 09 Jan 2019 22:58:01 GMT - request: method: get - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Query?BusinessObject=PORQRY&UserId=E4B229FC9C2F7A4BA70D10AF87DBB35600%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CQuery%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22PORQRY.XSD%22%3E%0A%20%20%3CKey%3E%0A%20%20%20%20%3CPurchaseOrder%3E%2000001%3C/PurchaseOrder%3E%0A%20%20%3C/Key%3E%0A%20%20%3COption%3E%0A%20%20%20%20%3CIncludeStockedLines%3EY%3C/IncludeStockedLines%3E%0A%20%20%20%20%3CIncludeNonStockedLines%3EY%3C/IncludeNonStockedLines%3E%0A%20%20%20%20%3CIncludeFreightLines%3EY%3C/IncludeFreightLines%3E%0A%20%20%20%20%3CIncludeMiscellaneousLines%3EY%3C/IncludeMiscellaneousLines%3E%0A%20%20%20%20%3CIncludeCommentLines%3EY%3C/IncludeCommentLines%3E%0A%20%20%20%20%3CIncludeCompletedLines%3EY%3C/IncludeCompletedLines%3E%0A%20%20%20%20%3CIncludeGrns%3EY%3C/IncludeGrns%3E%0A%20%20%20%20%3CIncludeHistory%3EY%3C/IncludeHistory%3E%0A%20%20%20%20%3CIncludeLctDetails%3EY%3C/IncludeLctDetails%3E%0A%20%20%20%20%3CIncludeRequisitionDetails%3EY%3C/IncludeRequisitionDetails%3E%0A%20%20%20%20%3CIncludeRequisitionRouting%3EY%3C/IncludeRequisitionRouting%3E%0A%20%20%20%20%3CIncludeSalesOrders%3EY%3C/IncludeSalesOrders%3E%0A%20%20%20%20%3CIncludeCustomForms%3EY%3C/IncludeCustomForms%3E%20%0A%20%20%20%20%3CXslStylesheet/%3E%0A%20%20%3C/Option%3E%0A%20%20%3CFilter%3E%0A%20%20%20%20%3CLineNo%20FilterType=%22A%22%20FilterValue=%22%22/%3E%20%20%20%20%20%0A%20%20%3C/Filter%3E%0A%3C/Query%3E%0A%0A + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Query?BusinessObject=PORQRY&UserId=E90218291FD44948B84CD2C434738C9800%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CQuery%20xmlns:xsd=%22http://www.w3.org/2001/XMSchema-instance%22%20xsd:noNamespaceSchemaocation=%22PORQRY.XSD%22%3E%0A%20%20%3CKey%3E%0A%20%20%20%20%3CPurchaseOrder%3E%2000001%3C/PurchaseOrder%3E%0A%20%20%3C/Key%3E%0A%20%20%3COption%3E%0A%20%20%20%20%3CIncludeStockedines%3EY%3C/IncludeStockedines%3E%0A%20%20%20%20%3CIncludeNonStockedines%3EY%3C/IncludeNonStockedines%3E%0A%20%20%20%20%3CIncludeFreightines%3EY%3C/IncludeFreightines%3E%0A%20%20%20%20%3CIncludeMiscellaneousines%3EY%3C/IncludeMiscellaneousines%3E%0A%20%20%20%20%3CIncludeCommentines%3EY%3C/IncludeCommentines%3E%0A%20%20%20%20%3CIncludeCompletedines%3EY%3C/IncludeCompletedines%3E%0A%20%20%20%20%3CIncludeGrns%3EY%3C/IncludeGrns%3E%0A%20%20%20%20%3CIncludeHistory%3EY%3C/IncludeHistory%3E%0A%20%20%20%20%3CIncludectDetails%3EY%3C/IncludectDetails%3E%0A%20%20%20%20%3CIncludeRequisitionDetails%3EY%3C/IncludeRequisitionDetails%3E%0A%20%20%20%20%3CIncludeRequisitionRouting%3EY%3C/IncludeRequisitionRouting%3E%0A%20%20%20%20%3CIncludeSalesOrders%3EY%3C/IncludeSalesOrders%3E%0A%20%20%20%20%3CIncludeCustomForms%3EY%3C/IncludeCustomForms%3E%20%0A%20%20%20%20%3CXslStylesheet/%3E%0A%20%20%3C/Option%3E%0A%20%20%3CFilter%3E%0A%20%20%20%20%3CineNo%20FilterType=%22A%22%20FilterValue=%22%22/%3E%20%20%20%20%20%0A%20%20%3C/Filter%3E%0A%3C/Query%3E%0A%0A body: encoding: US-ASCII string: '' @@ -53,98 +53,100 @@ http_interactions: code: 200 message: OK headers: - Content-Length: - - '20348' Content-Type: - application/octet-stream Server: - Microsoft-HTTPAPI/2.0 Date: - - Wed, 09 Jan 2019 00:28:38 GMT + - Wed, 09 Jan 2019 22:58:05 GMT + Content-ength: + - '20348' body: encoding: UTF-8 - string: "\n\n 00001\nUTE002\nUTEXAM - LOGISTICS LIMITED(ZERO)\n\n\n\n\n\n\n\n\n\n\n\n$\nY\nDOLLAR\nULL - OWNED @ PDI\n\n\n\n\n\n\n\n - \ 0.000000\n 0.000000\n*\nCancelled\nNo\n + string: "\nanguage='05' + anguage2='EN' CssStyle='' DecFormat='1' DateFormat='01' Role='01' + Version='7.0.022' OperatorPrimaryRole=' ' >\n 00001\nUTE002\nUTEXAM + OGISTICS IMITED(ZERO)\n\n\n\n\n\n\n\nocality/>\n\n\n\n$\n<ocalSupplier>YocalSupplier>\nDOAR\nU + OWNED @ PDI\n\n\n\nocality/>\n\n\n\nat> + \ 0.000000at>\nong> + \ 0.000000ong>\n*\nCancelled\nNo\n \ 1.000000\nNo\nA\nNET - 30\n\nU8\nULL - OWNED @ PDI\n2007-04-24\n2007-04-24\n2007-04-24\n\nLocal\n\nExempt - from tax\n\n\n2\nBRH\nBILL - HOLLOWAY\n0\nY\n\n\n1\nTempPO\nTemporary - PO\nTemporaryPo\nA\n1\n0\n{Spaces}\nY\n1\n\nN\n\n\n2\nBUY001\nBuyer - Order Number\nBuyerOrderNumber\nA\n15\n0\n{Spaces}\nY\n1\n1\nN\n\n\n\n\n1\n1\nStocked - line\n2804011COL\nSBL\nSPEARMINT - BLEND\nT\n1.000000\n0.000000\nI\nU8\nULL + 30\n\nU8\nU + OWNED @ PDI\n2007-04-24\n2007-04-24\n2007-04-24\n\nocal\n\nExempt + from tax\n\n\n2\nBRH\nBI + HOOWAY\n0\nY\n\n\n1\nTempPO\nTemporary + PO\nTemporaryPo\nA\n<ength>1ength>\n0\n{Spaces}\nY\n1\n\nN\n\n\n2\nBUY001\nBuyer + Order Number\nBuyerOrderNumber\nA\n<ength>15ength>\n0\n{Spaces}\nY\n1\n1\nN\n\n\nine>\n\n<ine>1ine>\n<ineType>1ineType>\n<ineTypeDescription>Stocked + lineineTypeDescription>\n2804011CO\nSB\n<ongDesc>SPEARMINT + BENDongDesc>\nT\n1.000000\n0.000000\nI\nU8\nU OWNED @ PDI\n38,400.000\n \ 38400.000000\n38,400.000\n \ 38400.000000\n0.000\n - \ 0.000000\nLB\n\n\nY\n0.00000\n0.000\n0.00000\n + \ 0.000000\nB\n\n\nY\n0.00000\n0.000\n0.00000\n \ 0.00\n 0.00\n - \ 0.00\n 0.00\n\nLB\n2007-04-24\n\nSBL\nSPEARMINT - BLEND LAB-CP\nLB\n1\n1.000000\nM\n\n\n1.000000\nM\n1908-00\nHARRAH-CUSTOMER - OWNED\n2007-04-24\n\n00000\n\n\n\n\n\n\n\n1908-00\n\n\n\nNo\n\n\n\n\n$\nYes\nP\nN\nP\n0.00000\n0.000\nLB\n\nM\nManual - entry\n0.00000\n0.000\nLB\nV\nTotal - cost\n0.00000\n0.000\nLB\nP\nPurchase - price\n0.00000\n0.000\nLB\nT\nPrice+tax\n0.00000\n0.000\nLB\n\n\n\n\n\n2\n1\nStocked - line\n2804011COL\nSBL\nSPEARMINT - BLEND\nT\n1.000000\n0.000000\nI\nU8\nULL + \ 0.00\n 0.00\n\nB\natestDueDate>2007-04-24atestDueDate>\n\nSB\nSPEARMINT + BEND AB-CP\nB\n1\n1.000000\nM\n\n\n1.000000\nM\n1908-00\nHARRAH-CUSTOMER + OWNED\n2007-04-24\nctConfirmed/>\n00000\n\n\n\n\nine/>\n\n<astReceipt/>\n<edger>1908-00edger>\nine/>\n\n\nNo\n\n\n\n\n$\nYes\nP\nN\nP\n0.00000\n0.000\nB\n\nM\nManual + entry\n0.00000\n0.000\nB\nV\nTotal + cost\n0.00000\n0.000\nB\nP\nPurchase + price\n0.00000\n0.000\nB\nT\nPrice+tax\n0.00000\n0.000\nB\n\n\nine>\nine>\n\n<ine>2ine>\n<ineType>1ineType>\n<ineTypeDescription>Stocked + lineineTypeDescription>\n2804011CO\nSB\n<ongDesc>SPEARMINT + BENDongDesc>\nT\n1.000000\n0.000000\nI\nU8\nU OWNED @ PDI\n38,400.000\n \ 38400.000000\n38,400.000\n \ 38400.000000\n0.000\n - \ 0.000000\nLB\n\n\nY\n0.00000\n0.000\n0.00000\n + \ 0.000000\nB\n\n\nY\n0.00000\n0.000\n0.00000\n \ 0.00\n 0.00\n - \ 0.00\n 0.00\n\nLB\n2007-04-24\n\nSBL\nSPEARMINT - BLEND LAB-CP\nLB\n1\n1.000000\nM\n\n\n1.000000\nM\n1908-00\nHARRAH-CUSTOMER - OWNED\n2007-04-24\n\n00000\n\n\n\n\n\n\n\n1908-00\n\n\n\nNo\n\n\n\n\n$\nYes\nP\nN\nP\n0.00000\n0.000\nLB\n\nM\nManual - entry\n0.00000\n0.000\nLB\nV\nTotal - cost\n0.00000\n0.000\nLB\nP\nPurchase - price\n0.00000\n0.000\nLB\nT\nPrice+tax\n0.00000\n0.000\nLB\n\n\n\n\n\n3\n1\nStocked - line\n2804011COL\nSBL\nSPEARMINT - BLEND\nT\n1.000000\n0.000000\nI\nU8\nULL + \ 0.00\n 0.00\n\nB\natestDueDate>2007-04-24atestDueDate>\n\nSB\nSPEARMINT + BEND AB-CP\nB\n1\n1.000000\nM\n\n\n1.000000\nM\n1908-00\nHARRAH-CUSTOMER + OWNED\n2007-04-24\nctConfirmed/>\n00000\n\n\n\n\nine/>\n\n<astReceipt/>\n<edger>1908-00edger>\nine/>\n\n\nNo\n\n\n\n\n$\nYes\nP\nN\nP\n0.00000\n0.000\nB\n\nM\nManual + entry\n0.00000\n0.000\nB\nV\nTotal + cost\n0.00000\n0.000\nB\nP\nPurchase + price\n0.00000\n0.000\nB\nT\nPrice+tax\n0.00000\n0.000\nB\n\n\nine>\nine>\n\n<ine>3ine>\n<ineType>1ineType>\n<ineTypeDescription>Stocked + lineineTypeDescription>\n2804011CO\nSB\n<ongDesc>SPEARMINT + BENDongDesc>\nT\n1.000000\n0.000000\nI\nU8\nU OWNED @ PDI\n35,200.000\n \ 35200.000000\n35,200.000\n \ 35200.000000\n0.000\n - \ 0.000000\nLB\n\n\nY\n0.00000\n0.000\n0.00000\n + \ 0.000000\nB\n\n\nY\n0.00000\n0.000\n0.00000\n \ 0.00\n 0.00\n - \ 0.00\n 0.00\n\nLB\n2007-04-24\n\nSBL\nSPEARMINT - BLEND LAB-CP\nLB\n1\n1.000000\nM\n\n\n1.000000\nM\n1908-00\nHARRAH-CUSTOMER - OWNED\n2007-04-24\n\n00000\n\n\n\n\n\n\n\n1908-00\n\n\n\nNo\n\n\n\n\n$\nYes\nP\nN\nP\n0.00000\n0.000\nLB\n\nM\nManual - entry\n0.00000\n0.000\nLB\nV\nTotal - cost\n0.00000\n0.000\nLB\nP\nPurchase - price\n0.00000\n0.000\nLB\nT\nPrice+tax\n0.00000\n0.000\nLB\n\n\n\n\n\n4\n1\nStocked - line\n2804011COL\nSBL\nSPEARMINT - BLEND\nT\n1.000000\n0.000000\nI\nU8\nULL + \ 0.00\n 0.00\n\nB\natestDueDate>2007-04-24atestDueDate>\n\nSB\nSPEARMINT + BEND AB-CP\nB\n1\n1.000000\nM\n\n\n1.000000\nM\n1908-00\nHARRAH-CUSTOMER + OWNED\n2007-04-24\nctConfirmed/>\n00000\n\n\n\n\nine/>\n\n<astReceipt/>\n<edger>1908-00edger>\nine/>\n\n\nNo\n\n\n\n\n$\nYes\nP\nN\nP\n0.00000\n0.000\nB\n\nM\nManual + entry\n0.00000\n0.000\nB\nV\nTotal + cost\n0.00000\n0.000\nB\nP\nPurchase + price\n0.00000\n0.000\nB\nT\nPrice+tax\n0.00000\n0.000\nB\n\n\nine>\nine>\n\n<ine>4ine>\n<ineType>1ineType>\n<ineTypeDescription>Stocked + lineineTypeDescription>\n2804011CO\nSB\n<ongDesc>SPEARMINT + BENDongDesc>\nT\n1.000000\n0.000000\nI\nU8\nU OWNED @ PDI\n38,400.000\n \ 38400.000000\n38,400.000\n \ 38400.000000\n0.000\n - \ 0.000000\nLB\n\n\nY\n0.00000\n0.000\n0.00000\n + \ 0.000000\nB\n\n\nY\n0.00000\n0.000\n0.00000\n \ 0.00\n 0.00\n - \ 0.00\n 0.00\n\nLB\n2007-04-24\n\nSBL\nSPEARMINT - BLEND LAB-CP\nLB\n1\n1.000000\nM\n\n\n1.000000\nM\n1908-00\nHARRAH-CUSTOMER - OWNED\n2007-04-24\n\n00000\n\n\n\n\n\n\n\n1908-00\n\n\n\nNo\n\n\n\n\n$\nYes\nP\nN\nP\n0.00000\n0.000\nLB\n\nM\nManual - entry\n0.00000\n0.000\nLB\nV\nTotal - cost\n0.00000\n0.000\nLB\nP\nPurchase - price\n0.00000\n0.000\nLB\nT\nPrice+tax\n0.00000\n0.000\nLB\n\n\n\n\n\n5\n1\nStocked - line\n2804011COL\nSBL\nSPEARMINT - BLEND\nT\n1.000000\n0.000000\nI\nU8\nULL + \ 0.00\n 0.00\n\nB\natestDueDate>2007-04-24atestDueDate>\n\nSB\nSPEARMINT + BEND AB-CP\nB\n1\n1.000000\nM\n\n\n1.000000\nM\n1908-00\nHARRAH-CUSTOMER + OWNED\n2007-04-24\nctConfirmed/>\n00000\n\n\n\n\nine/>\n\n<astReceipt/>\n<edger>1908-00edger>\nine/>\n\n\nNo\n\n\n\n\n$\nYes\nP\nN\nP\n0.00000\n0.000\nB\n\nM\nManual + entry\n0.00000\n0.000\nB\nV\nTotal + cost\n0.00000\n0.000\nB\nP\nPurchase + price\n0.00000\n0.000\nB\nT\nPrice+tax\n0.00000\n0.000\nB\n\n\nine>\nine>\n\n<ine>5ine>\n<ineType>1ineType>\n<ineTypeDescription>Stocked + lineineTypeDescription>\n2804011CO\nSB\n<ongDesc>SPEARMINT + BENDongDesc>\nT\n1.000000\n0.000000\nI\nU8\nU OWNED @ PDI\n38,400.000\n \ 38400.000000\n38,400.000\n \ 38400.000000\n0.000\n - \ 0.000000\nLB\n\n\nY\n0.00000\n0.000\n0.00000\n + \ 0.000000\nB\n\n\nY\n0.00000\n0.000\n0.00000\n \ 0.00\n 0.00\n - \ 0.00\n 0.00\n\nLB\n2007-04-24\n\nSBL\nSPEARMINT - BLEND LAB-CP\nLB\n1\n1.000000\nM\n\n\n1.000000\nM\n1908-00\nHARRAH-CUSTOMER - OWNED\n2007-04-24\n\n00000\n\n\n\n\n\n\n\n1908-00\n\n\n\nNo\n\n\n\n\n$\nYes\nP\nN\nP\n0.00000\n0.000\nLB\n\nM\nManual - entry\n0.00000\n0.000\nLB\nV\nTotal - cost\n0.00000\n0.000\nLB\nP\nPurchase - price\n0.00000\n0.000\nLB\nT\nPrice+tax\n0.00000\n0.000\nLB\n\n\n\n\n\n - \ 0.00\n 0.00\n - \ 0.00\n0.00\n0.00\n0.00\n\n\n0.00\n + \ 0.00\n 0.00\n\nB\natestDueDate>2007-04-24atestDueDate>\n\nSB\nSPEARMINT + BEND AB-CP\nB\n1\n1.000000\nM\n\n\n1.000000\nM\n1908-00\nHARRAH-CUSTOMER + OWNED\n2007-04-24\nctConfirmed/>\n00000\n\n\n\n\nine/>\n\n<astReceipt/>\n<edger>1908-00edger>\nine/>\n\n\nNo\n\n\n\n\n$\nYes\nP\nN\nP\n0.00000\n0.000\nB\n\nM\nManual + entry\n0.00000\n0.000\nB\nV\nTotal + cost\n0.00000\n0.000\nB\nP\nPurchase + price\n0.00000\n0.000\nB\nT\nPrice+tax\n0.00000\n0.000\nB\n\n\nine>\n\n<ocalValues>\n<ocalOrderValue> + \ 0.00ocalOrderValue>\n<ocalReceivedToDateValue> + \ 0.00ocalReceivedToDateValue>\n<ocalOutstandingValue> + \ 0.00ocalOutstandingValue>\nocalOrderValue>0.00ocalOrderValue>\nocalReceivedToDateValue>0.00ocalReceivedToDateValue>\nocalOutstandingValue>0.00ocalOutstandingValue>\nocalValues>\n\n0.00\n \ 0.00\n 0.00\n \ 0.00\n0.00\n0.00\n\n\n\n\n\n " http_version: - recorded_at: Wed, 09 Jan 2019 00:28:37 GMT + recorded_at: Wed, 09 Jan 2019 22:58:03 GMT recorded_with: VCR 4.0.0 diff --git a/test/cassettes/test_query_browse.yml b/test/cassettes/test_query_browse.yml deleted file mode 100644 index 3642ec3..0000000 --- a/test/cassettes/test_query_browse.yml +++ /dev/null @@ -1,78 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=Piperita2018 - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Syspro/7 RubyBindings/1.0.0.alpha.2 - Content-Type: - - application/x-www-form-urlencoded - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Content-Length: - - '36' - Content-Type: - - application/octet-stream - Server: - - Microsoft-HTTPAPI/2.0 - Date: - - Wed, 09 Jan 2019 00:28:39 GMT - body: - encoding: UTF-8 - string: '42F9885C71D1C94C8D76D156C187573D00 ' - http_version: - recorded_at: Wed, 09 Jan 2019 00:28:39 GMT -- request: - method: get - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Browse?UserId=42F9885C71D1C94C8D76D156C187573D00%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CBrowse%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22COMBRW.XSD%22%3E%0A%20%20%3CBrowseName%3EInvMaster%3C/BrowseName%3E%0A%20%20%3CStartAtKey%3E%3C/StartAtKey%3E%0A%20%20%3CStartCondition%3E%3C/StartCondition%3E%0A%20%20%3CReturnRows%3E5%3C/ReturnRows%3E%0A%20%20%0A%3C/Browse%3E%0A%0A - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Syspro/7 RubyBindings/1.0.0.alpha.2 - Content-Type: - - application/x-www-form-urlencoded - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Content-Length: - - '1899' - Content-Type: - - application/octet-stream - Server: - - Microsoft-HTTPAPI/2.0 - Date: - - Wed, 09 Jan 2019 00:28:41 GMT - body: - encoding: UTF-8 - string: "\n\nStock Codes\n\n\n02\nAlphaNumeric\n\n\nSTR\nAlphaNumeric\n\n\nSPEARMINT - TERPENES\nAlphaNumeric\n\n\n\n\n021\nAlphaNumeric\n\n\nSTR\nAlphaNumeric\n\n\nSPEARMINT - TERPENES NATIVE\nAlphaNumeric\n\n\n\n\n0214011IFF\nAlphaNumeric\n\n\n00196998\nAlphaNumeric\n\n\nSPEARMINT - TERPENES\nAlphaNumeric\n\n\n\n\n022\nAlphaNumeric\n\n\nSTR\nAlphaNumeric\n\n\nSPEARMINT - TERPENES SCOTCH\nAlphaNumeric\n\n\n\n\n023\nAlphaNumeric\n\n\nSTR\nAlphaNumeric\n\n\nSPEARMINT - TERPENES INDIAN\nAlphaNumeric\n\n\n\n02\n023\nTrue\nFalse\n\n\n
Stock - code
\n
Description
\n
Long description
\nStockCode\nStock - code\nInvMaster
\n
\n
\n " - http_version: - recorded_at: Wed, 09 Jan 2019 00:28:40 GMT -recorded_with: VCR 4.0.0 diff --git a/test/cassettes/test_query_fetch.yml b/test/cassettes/test_query_fetch.yml index cff2aa6..6191c36 100644 --- a/test/cassettes/test_query_fetch.yml +++ b/test/cassettes/test_query_fetch.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=Piperita2018 + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=&CompanyPassword=&Operator=&OperatorPassword= body: encoding: US-ASCII string: '' @@ -20,22 +20,22 @@ http_interactions: code: 200 message: OK headers: - Content-Length: - - '36' Content-Type: - application/octet-stream Server: - Microsoft-HTTPAPI/2.0 Date: - - Wed, 09 Jan 2019 00:28:43 GMT + - Wed, 09 Jan 2019 22:58:01 GMT + Content-ength: + - '36' body: encoding: UTF-8 - string: '298FDAC63B744A44B5512B1057C0FB2A00 ' + string: '614801C3977A2A47B26669EEC9005EF200 ' http_version: - recorded_at: Wed, 09 Jan 2019 00:28:42 GMT + recorded_at: Wed, 09 Jan 2019 22:58:00 GMT - request: method: get - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Fetch?UserId=298FDAC63B744A44B5512B1057C0FB2A00%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CFetch%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22COMFCH.XSD%22%3E%0A%20%20%3CTableName%3EInvMaster%3C/TableName%3E%0A%20%20%3CKey%3E02%3C/Key%3E%0A%20%20%0A%20%20%3CFullKeyProvided%3EY%3C/FullKeyProvided%3E%0A%20%20%3CDefaultType%3E%3C/DefaultType%3E%0A%20%20%3CEspressoFetch%3EN%3C/EspressoFetch%3E%0A%3C/Fetch%3E%0A%0A + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Fetch?UserId=614801C3977A2A47B26669EEC9005EF200%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CFetch%20xmlns:xsd=%22http://www.w3.org/2001/XMSchema-instance%22%20xsd:noNamespaceSchemaocation=%22COMFCH.XSD%22%3E%0A%20%20%3CTableName%3EInvMaster%3C/TableName%3E%0A%20%20%3CKey%3E02%3C/Key%3E%0A%20%20%0A%20%20%3CFullKeyProvided%3EY%3C/FullKeyProvided%3E%0A%20%20%3CDefaultType%3E%3C/DefaultType%3E%0A%20%20%3CEspressoFetch%3EN%3C/EspressoFetch%3E%0A%3C/Fetch%3E%0A%0A body: encoding: US-ASCII string: '' @@ -53,44 +53,46 @@ http_interactions: code: 200 message: OK headers: - Content-Length: - - '3911' Content-Type: - application/octet-stream Server: - Microsoft-HTTPAPI/2.0 Date: - - Wed, 09 Jan 2019 00:28:44 GMT + - Wed, 09 Jan 2019 22:58:01 GMT + Content-ength: + - '3911' body: encoding: UTF-8 - string: "\n\n02\nSTR\nSPEARMINT - TERPENES\n\n\n\nLB\nKG\nDR\n + string: "\nanguage='05' + anguage2='EN' CssStyle='' DecFormat='1' DateFormat='01' Role='01' + Version='7.0.035' OperatorPrimaryRole=' '>\n02\nSTR\n<ongDesc>SPEARMINT + TERPENESongDesc>\n\n\n\nB\nKG\nDR\n \ 2.204620\nM\n \ 400.000000\nM\n 1.000000\n \ 0.000000\n3\nA\nC\n\n - 0\nSTRP\nA\n\nA\nN\nY\nN\n - 0\n\n\nT\nN\nN\n\n - \ 0\nY\nN\n0000-00-00\nY\nN\nLB\n - \ 0.00\n 0.00000\n + 0\nSTRP\nA\n\n<istPriceCode>AistPriceCode>\nN\nY\nN\n<owevelCode> + 0owevelCode>\n\n\nT\nN\nN\n\n<eadTime> + \ 0eadTime>\nY\nN\n0000-00-00\nY\nN\nB\n + \ 0.00\n<abourCost> 0.00000abourCost>\n \ 0.00000\n 0.00000\n \ 0.00000\nB\n\nH1\nA\n 0.0000\n 0\n 400.000000\n \ 0\n 1\n 0.000000\n - \ 0\nF\n - \ 0\n\n\n 0\nN\n - \ 0\nI\n100\n + \ 0\nF\nife> + \ 0ife>\n\n\n + \ 0\nN\neadTime> + \ 0eadTime>\nI\n100\n \ 0.00000\n 0.00000\n \ 0.00000\n 0.00000\n \ 0.00000\n\n\nA\nN\n\n\n\n - \ 0.00000\n\n\n\n\nN\nE\n - \ 0.00000\nN\n\nY\nY\n - \ 0.00000\n\n\n\n\nN\nN\n0\n\n\n\n\n\nN\n\n\n\n\n - \ 0.00000\n2005-08-26\n\n\n\n\n\n\n\n\nLB\n - \ 1.000000\nM\n 0\n - \ 0.000\n\n\n\n\n - \ 0\n 0\n\n\n\n\n\n " + \ 0.00000\n\n\n\n\nN\nE\nandedCost> + \ 0.00000andedCost>\n<ctRequired>NctRequired>\nctRoute/>\notsFlag>YotsFlag>\nY\nabCostsBill> + \ 0.00000abCostsBill>\n\n\n\n\nN\nN\n0\n\n\n\n\n\nN\n\n\n\n\n + \ 0.00000\n2005-08-26\n\n\n\n\n\n\n\n\nB\n + \ 1.000000\nM\n<ookAheadWin> + \ 0ookAheadWin>\n<oadingFactor> 0.000oadingFactor>\n\n\n\n\nife> + \ 0ife>\nife> + \ 0ife>\n\n\n\n\n\n " http_version: - recorded_at: Wed, 09 Jan 2019 00:28:43 GMT + recorded_at: Wed, 09 Jan 2019 22:58:00 GMT recorded_with: VCR 4.0.0 diff --git a/test/cassettes/test_query_query.yml b/test/cassettes/test_query_query.yml index c17f597..dacabf5 100644 --- a/test/cassettes/test_query_query.yml +++ b/test/cassettes/test_query_query.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=Piperita2018 + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=&CompanyPassword=&Operator=&OperatorPassword= body: encoding: US-ASCII string: '' @@ -20,22 +20,22 @@ http_interactions: code: 200 message: OK headers: - Content-Length: - - '36' Content-Type: - application/octet-stream Server: - Microsoft-HTTPAPI/2.0 Date: - - Wed, 09 Jan 2019 00:28:41 GMT + - Wed, 09 Jan 2019 22:58:00 GMT + Content-ength: + - '36' body: encoding: UTF-8 - string: '5164D8F79E0BC54E94AA768802A7936100 ' + string: '96AB04439FC3B84BAEC49E6E11DA770900 ' http_version: - recorded_at: Wed, 09 Jan 2019 00:28:40 GMT + recorded_at: Wed, 09 Jan 2019 22:57:58 GMT - request: method: get - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Query?BusinessObject=COMFND&UserId=5164D8F79E0BC54E94AA768802A7936100%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CQuery%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22COMFND.XSD%22%3E%0A%20%20%3CTableName%3EInvMaster%3C/TableName%3E%0A%20%20%3CReturnRows%3E5%3C/ReturnRows%3E%0A%20%20%3CColumns%3E%0A%20%20%20%20%0A%20%20%20%20%20%20%3CColumn%3EStockCode%3C/Column%3E%0A%20%20%20%20%0A%20%20%3C/Columns%3E%0A%20%20%0A%20%20%20%20%3CWhere%3E%0A%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%3CExpression%3E%0A%20%20%20%20%20%20%20%20%20%20%3COpenBracket%3E(%3C/OpenBracket%3E%0A%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CAndOr%3EAnd%3C/AndOr%3E%0A%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%3CColumn%3EStockCode%3C/Column%3E%0A%20%20%20%20%20%20%20%20%20%20%3CCondition%3EEQ%3C/Condition%3E%0A%20%20%20%20%20%20%20%20%20%20%3CValue%3E02%3C/Value%3E%0A%20%20%20%20%20%20%20%20%20%20%3CCloseBracket%3E)%3C/CloseBracket%3E%0A%20%20%20%20%20%20%20%20%3C/Expression%3E%0A%20%20%20%20%20%20%0A%20%20%20%20%3C/Where%3E%0A%20%20%0A%20%20%3COrderBy%3E%0A%20%20%20%20%3CColumn%3EStockCode%3C/Column%3E%0A%20%20%3C/OrderBy%3E%0A%3C/Query%3E%0A + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Query?BusinessObject=COMFND&UserId=96AB04439FC3B84BAEC49E6E11DA770900%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CQuery%20xmlns:xsd=%22http://www.w3.org/2001/XMSchema-instance%22%20xsd:noNamespaceSchemaocation=%22COMFND.XSD%22%3E%0A%20%20%3CTableName%3EInvMaster%3C/TableName%3E%0A%20%20%3CReturnRows%3E5%3C/ReturnRows%3E%0A%20%20%3CColumns%3E%0A%20%20%20%20%0A%20%20%20%20%20%20%3CColumn%3EStockCode%3C/Column%3E%0A%20%20%20%20%0A%20%20%3C/Columns%3E%0A%20%20%0A%20%20%20%20%3CWhere%3E%0A%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%3CExpression%3E%0A%20%20%20%20%20%20%20%20%20%20%3COpenBracket%3E(%3C/OpenBracket%3E%0A%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CAndOr%3EAnd%3C/AndOr%3E%0A%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%3CColumn%3EStockCode%3C/Column%3E%0A%20%20%20%20%20%20%20%20%20%20%3CCondition%3EEQ%3C/Condition%3E%0A%20%20%20%20%20%20%20%20%20%20%3CValue%3E02%3C/Value%3E%0A%20%20%20%20%20%20%20%20%20%20%3CCloseBracket%3E)%3C/CloseBracket%3E%0A%20%20%20%20%20%20%20%20%3C/Expression%3E%0A%20%20%20%20%20%20%0A%20%20%20%20%3C/Where%3E%0A%20%20%0A%20%20%3COrderBy%3E%0A%20%20%20%20%3CColumn%3EStockCode%3C/Column%3E%0A%20%20%3C/OrderBy%3E%0A%3C/Query%3E%0A body: encoding: US-ASCII string: '' @@ -53,20 +53,20 @@ http_interactions: code: 200 message: OK headers: - Content-Length: - - '436' Content-Type: - application/octet-stream Server: - Microsoft-HTTPAPI/2.0 Date: - - Wed, 09 Jan 2019 00:28:43 GMT + - Wed, 09 Jan 2019 22:58:01 GMT + Content-ength: + - '436' body: encoding: UTF-8 - string: "\n\n\nInvMaster\n\nStockCode\n\n\nStockCode\n\n\n\n02\n\n + string: "\nanguage='05' + anguage2='EN' CssStyle='' DecFormat='1' DateFormat='01' Role='01' + Version='7.0.053' OperatorPrimaryRole=' '>\n\nInvMaster\n\nStockCode\n\n\nStockCode\n\n\n\n02\n\n \ 1\n\n " http_version: - recorded_at: Wed, 09 Jan 2019 00:28:42 GMT + recorded_at: Wed, 09 Jan 2019 22:57:59 GMT recorded_with: VCR 4.0.0 diff --git a/test/cassettes/test_sor_query.yml b/test/cassettes/test_sor_query.yml index a260e29..5a27b8a 100644 --- a/test/cassettes/test_sor_query.yml +++ b/test/cassettes/test_sor_query.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=Piperita2018 + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=&CompanyPassword=&Operator=&OperatorPassword= body: encoding: US-ASCII string: '' @@ -20,22 +20,22 @@ http_interactions: code: 200 message: OK headers: - Content-Length: - - '36' Content-Type: - application/octet-stream Server: - Microsoft-HTTPAPI/2.0 Date: - - Wed, 09 Jan 2019 00:28:32 GMT + - Wed, 09 Jan 2019 22:58:05 GMT + Content-ength: + - '36' body: encoding: UTF-8 - string: 'F3FD8466E601D44CB900D3B5B267692200 ' + string: 'E5AEED46726A9B43904A3F53B39844D000 ' http_version: - recorded_at: Wed, 09 Jan 2019 00:28:31 GMT + recorded_at: Wed, 09 Jan 2019 22:58:03 GMT - request: method: get - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Query?BusinessObject=SORQRY&UserId=F3FD8466E601D44CB900D3B5B267692200%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CQuery%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22SORQRY.XSD%22%3E%0A%20%20%3CKey%3E%0A%20%20%20%20%3CSalesOrder%3E16R069%3C/SalesOrder%3E%0A%20%20%20%20%0A%20%20%3C/Key%3E%0A%20%20%3COption%3E%0A%20%20%20%20%3CIncludeStockedLines%3EN%3C/IncludeStockedLines%3E%0A%20%20%20%20%20%20%3CIncludeNonStockedLines%3EN%3C/IncludeNonStockedLines%3E%0A%20%20%20%20%20%20%3CIncludeFreightLines%3EN%3C/IncludeFreightLines%3E%0A%20%20%20%20%20%20%3CIncludeMiscLines%3EN%3C/IncludeMiscLines%3E%0A%20%20%20%20%20%20%3CIncludeCommentLines%3EN%3C/IncludeCommentLines%3E%0A%20%20%20%20%20%20%3CIncludeCompletedLines%3EN%3C/IncludeCompletedLines%3E%0A%20%20%20%20%20%20%3CIncludeSerials%3EN%3C/IncludeSerials%3E%0A%20%20%20%20%20%20%3CIncludeLots%3EN%3C/IncludeLots%3E%0A%20%20%20%20%20%20%3CIncludeBins%3EN%3C/IncludeBins%3E%0A%20%20%20%20%20%20%3CIncludeAttachedItems%3EN%3C/IncludeAttachedItems%3E%0A%20%20%20%20%20%20%3CIncludeCustomForms%3EN%3C/IncludeCustomForms%3E%0A%20%20%20%20%20%20%3CIncludeDetailLineCustomForms%3EN%3C/IncludeDetailLineCustomForms%3E%0A%20%20%20%20%20%20%3CIncludeValues%3EN%3C/IncludeValues%3E%0A%20%20%20%20%20%20%3CReturnLineShipDate%3EN%3C/ReturnLineShipDate%3E%0A%20%20%20%20%20%20%3CXslStylesheet/%3E%0A%20%20%3C/Option%3E%0A%3C/Query%3E%0A%0A + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Query?BusinessObject=SORQRY&UserId=E5AEED46726A9B43904A3F53B39844D000%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CQuery%20xmlns:xsd=%22http://www.w3.org/2001/XMSchema-instance%22%20xsd:noNamespaceSchemaocation=%22SORQRY.XSD%22%3E%0A%20%20%3CKey%3E%0A%20%20%20%20%3CSalesOrder%3E16R069%3C/SalesOrder%3E%0A%20%20%20%20%0A%20%20%3C/Key%3E%0A%20%20%3COption%3E%0A%20%20%20%20%3CIncludeStockedines%3EN%3C/IncludeStockedines%3E%0A%20%20%20%20%20%20%3CIncludeNonStockedines%3EN%3C/IncludeNonStockedines%3E%0A%20%20%20%20%20%20%3CIncludeFreightines%3EN%3C/IncludeFreightines%3E%0A%20%20%20%20%20%20%3CIncludeMiscines%3EN%3C/IncludeMiscines%3E%0A%20%20%20%20%20%20%3CIncludeCommentines%3EN%3C/IncludeCommentines%3E%0A%20%20%20%20%20%20%3CIncludeCompletedines%3EN%3C/IncludeCompletedines%3E%0A%20%20%20%20%20%20%3CIncludeSerials%3EN%3C/IncludeSerials%3E%0A%20%20%20%20%20%20%3CIncludeots%3EN%3C/Includeots%3E%0A%20%20%20%20%20%20%3CIncludeBins%3EN%3C/IncludeBins%3E%0A%20%20%20%20%20%20%3CIncludeAttachedItems%3EN%3C/IncludeAttachedItems%3E%0A%20%20%20%20%20%20%3CIncludeCustomForms%3EN%3C/IncludeCustomForms%3E%0A%20%20%20%20%20%20%3CIncludeDetailineCustomForms%3EN%3C/IncludeDetailineCustomForms%3E%0A%20%20%20%20%20%20%3CIncludeValues%3EN%3C/IncludeValues%3E%0A%20%20%20%20%20%20%3CReturnineShipDate%3EN%3C/ReturnineShipDate%3E%0A%20%20%20%20%20%20%3CXslStylesheet/%3E%0A%20%20%3C/Option%3E%0A%3C/Query%3E%0A%0A body: encoding: US-ASCII string: '' @@ -53,34 +53,37 @@ http_interactions: code: 200 message: OK headers: - Content-Length: - - '3812' Content-Type: - application/octet-stream Server: - Microsoft-HTTPAPI/2.0 Date: - - Wed, 09 Jan 2019 00:28:34 GMT + - Wed, 09 Jan 2019 22:58:06 GMT + Content-ength: + - '3812' body: encoding: UTF-8 - string: "\n\n16R069\nO\nOrder\n\n\n\n\n\nSYM000\nSYMRISE - GLOBAL\nE\nExempt + string: "\nanguage='05' + anguage2='EN' CssStyle='' DecFormat='1' DateFormat='01' Role='01' + Version='7.0.047' OperatorPrimaryRole=' ' xmlns:SAARE=\"SAARE\" + xmlns:SASS=\"SASS\" + xmlns:TBART=\"TBART\" xmlns:SABRN=\"SABRN\" + xmlns:TBCUR=\"TBCUR\" >\n16R069\nO\nOrder\n\n\n\n\n\nSYM000\nSYMRISE + GOBA\nE\nExempt from tax\nE\nExempt from tax\nN\nEU\nSYMRISE - GLOBAL\nFR KREDITOREN\nPOSTFACH - 1253\nD-37601 HOLZMINDEN\n\nGERMANY\n\n\n - \ 0.000000\n 0.000000\nDAL\n\n0.00\n0.00\n0.00\n\nDAL\n0.00\n0.00\n\n0.00\n0.00\n\n0.00\n0.00\n\n0.00\n0.00\n\nDAN - A LABBEE\n*\nCancelled - during entry\n\n2014-08-13\n\n2017-05-31\n\n\n\n3\n\n\n00\n00\n\n\n00\n00\nNET - 30 DAYS\nHQ\nHARRAH, - WASHINGTON RECEIVABLES\n\n\nFG\nFOREIGN\n\n\n$\nDOLLAR\nIMPORTANT\nTHIS - IS A GLOBAL ACCOUNT\nUSED TO HOLD\n\nSCHEDULED - ORDERS ON CONTRACTS\nDO NOT SHIP FROM GLOBAL\n\n - \ 0.000000\n 0.000000\nN\n\nN\n - \ 1.000000\n1.000000\nM\n\nI\n\n\n\n\n\n\n\n000\n00\n0\n\n\n\n\n\n\n\nMATTB\n\n\n\n\n\n\n\n\n0\nY\n\n\n\n\n\n " + GOBA\nFR KREDITOREN\nPOSTFACH + 1253\nD-37601 HOZMINDEN\nocality/>\nGERMANY\n\n\nat> + \ 0.000000at>\nong> 0.000000ong>\nDA\n\n0.00\n0.00\n0.00\n\nDA\n0.00\n0.00\n\n0.00\n0.00\n\n0.00\n0.00\n\n0.00\n0.00\n\nSS:Name>DAN + A ABBEESS:Name>\n*\nCancelled + during entry\n\n2014-08-13\n\n2017-05-31\n\n\n\n3\n\n<astDelNote/>\n00\n00\n<astInvoice/>\nastInvPrt/>\n00\n00\nART:Description>NET + 30 DAYSART:Description>\nHQ\nBRN:Description>HARRAH, + WASHINGTON RECEIVABESBRN:Description>\n\n\nFG\nARE:Description>FOREIGNARE:Description>\n\n\n$\nCUR:Description>DOARCUR:Description>\nIMPORTANT\nTHIS + IS A GOBA ACCOUNT\nUSED + TO HOD\nocality/>\nSCHEDUED + ORDERS ON CONTRACTS\nDO NOT SHIP FROM GOBA\n\nat> + \ 0.000000at>\nong> 0.000000ong>\nN\n\nN\n + \ 1.000000\n1.000000\nM\n\nI\n\n\n\n\n\n\nocation/>\n000\n00\n0\n\n\n\n\n\n\n\n<astOperator>MATTBastOperator>\n\n\n\n\n\n\n\n<iveDispExist/>\n0\nY\n\n\n\n\n\n " http_version: - recorded_at: Wed, 09 Jan 2019 00:28:33 GMT + recorded_at: Wed, 09 Jan 2019 22:58:03 GMT recorded_with: VCR 4.0.0 diff --git a/test/cassettes/test_successful_logoff.yml b/test/cassettes/test_successful_logoff.yml index 03d28ab..1188b7a 100644 --- a/test/cassettes/test_successful_logoff.yml +++ b/test/cassettes/test_successful_logoff.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=Piperita2018 + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=&CompanyPassword=&Operator=&OperatorPassword= body: encoding: US-ASCII string: '' @@ -20,22 +20,22 @@ http_interactions: code: 200 message: OK headers: - Content-Length: - - '36' Content-Type: - application/octet-stream Server: - Microsoft-HTTPAPI/2.0 Date: - - Wed, 09 Jan 2019 00:28:31 GMT + - Wed, 09 Jan 2019 22:58:07 GMT + Content-ength: + - '36' body: encoding: UTF-8 - string: '4A540294F5C15A4F8084B3E0905E44F200 ' + string: '8769428E37B2BF4AA353D1440BA1834600 ' http_version: - recorded_at: Wed, 09 Jan 2019 00:28:30 GMT + recorded_at: Wed, 09 Jan 2019 22:58:05 GMT - request: method: get - uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logoff?UserId=4A540294F5C15A4F8084B3E0905E44F200%20%20 + uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logoff?UserId=8769428E37B2BF4AA353D1440BA1834600%20%20 body: encoding: US-ASCII string: '' @@ -53,17 +53,17 @@ http_interactions: code: 200 message: OK headers: - Content-Length: - - '1' Content-Type: - application/octet-stream Server: - Microsoft-HTTPAPI/2.0 Date: - - Wed, 09 Jan 2019 00:28:32 GMT + - Wed, 09 Jan 2019 22:58:07 GMT + Content-ength: + - '1' body: encoding: UTF-8 string: '0' http_version: - recorded_at: Wed, 09 Jan 2019 00:28:31 GMT + recorded_at: Wed, 09 Jan 2019 22:58:05 GMT recorded_with: VCR 4.0.0 diff --git a/test/logoff_test.rb b/test/logoff_test.rb index fc60da3..64d7411 100644 --- a/test/logoff_test.rb +++ b/test/logoff_test.rb @@ -7,9 +7,9 @@ class LogoffTest < Minitest::Test before { VCR.insert_cassette name } after { VCR.eject_cassette } - let(:username) { 'wland' } - let(:password) { 'Piperita2018' } - let(:company) { 'L' } + let(:username) { ENV['SYSPRO_USERNAME'] } + let(:password) { ENV['SYSPRO_PASSWORD'] } + let(:company) { ENV['SYSPRO_COMPANY'] } let(:company_password) { '' } def test_successful_logoff diff --git a/test/logon_test.rb b/test/logon_test.rb index 1f7c097..fb9f661 100644 --- a/test/logon_test.rb +++ b/test/logon_test.rb @@ -7,9 +7,9 @@ class LogonTest < Minitest::Test before { VCR.insert_cassette name } after { VCR.eject_cassette } - let(:username) { 'wland' } - let(:password) { 'Piperita2018' } - let(:company) { 'L' } + let(:username) { ENV['SYSPRO_USERNAME'] } + let(:password) { ENV['SYSPRO_PASSWORD'] } + let(:company) { ENV['SYSPRO_COMPANY'] } let(:company_password) { '' } def test_logon diff --git a/test/por_test.rb b/test/por_test.rb index 2cea6e5..d346fcf 100644 --- a/test/por_test.rb +++ b/test/por_test.rb @@ -5,10 +5,11 @@ class PorTest < Minitest::Test before { VCR.insert_cassette name } after { VCR.eject_cassette } - let(:username) { 'wland' } - let(:password) { 'Piperita2018' } - let(:company) { 'L' } + let(:username) { ENV['SYSPRO_USERNAME'] } + let(:password) { ENV['SYSPRO_PASSWORD'] } + let(:company) { ENV['SYSPRO_COMPANY'] } let(:company_password) { '' } + let(:user_id) do Syspro::Logon.logon(username, password, company, company_password) end diff --git a/test/query_test.rb b/test/query_test.rb index 12e6911..165da02 100644 --- a/test/query_test.rb +++ b/test/query_test.rb @@ -7,10 +7,11 @@ class QueryTest < Minitest::Test before { VCR.insert_cassette name } after { VCR.eject_cassette } - let(:username) { 'wland' } - let(:password) { 'Piperita2018' } - let(:company) { 'L' } + let(:username) { ENV['SYSPRO_USERNAME'] } + let(:password) { ENV['SYSPRO_PASSWORD'] } + let(:company) { ENV['SYSPRO_COMPANY'] } let(:company_password) { '' } + let(:user_id) do Syspro::Logon.logon(username, password, company, company_password) end diff --git a/test/sor_test.rb b/test/sor_test.rb index b540c08..cb1d9aa 100644 --- a/test/sor_test.rb +++ b/test/sor_test.rb @@ -7,10 +7,11 @@ class SorTest < Minitest::Test before { VCR.insert_cassette name } after { VCR.eject_cassette } - let(:username) { 'wland' } - let(:password) { 'Piperita2018' } - let(:company) { 'L' } + let(:username) { ENV['SYSPRO_USERNAME'] } + let(:password) { ENV['SYSPRO_PASSWORD'] } + let(:company) { ENV['SYSPRO_COMPANY'] } let(:company_password) { '' } + let(:user_id) do Syspro::Logon.logon(username, password, company, company_password) end @@ -36,6 +37,7 @@ class SorTest < Minitest::Test sorqbs.line_ship_date = true sor_result = sorqbs.call(user_id.guid) + assert_kind_of Syspro::BusinessObjects::Models::SorDetail, sor_result end end diff --git a/test/test_helper.rb b/test/test_helper.rb index 59a2236..ab490aa 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -11,8 +11,9 @@ require 'webmock' VCR.configure do |c| c.cassette_library_dir = 'test/cassettes' c.hook_into :webmock - # TODO: change passwords and move them to ENV - # c.filter_sensitive_data() { ENV[] } + c.filter_sensitive_data('') { ENV['SYSPRO_USERNAME'] } + c.filter_sensitive_data('') { ENV['SYSPRO_PASSWORD'] } + c.filter_sensitive_data('') { ENV['SYSPRO_COMPANY'] } end MinitestVcr::Spec.configure! -- libgit2 0.21.4