Skip to content

Commit 7ae0662

Browse files
author
Rubens F. N. da Silva
committed
Fixed usage of inexistent class
1 parent f4db054 commit 7ae0662

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

cls/Frontier/DevTools/FakeAgent.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Method %OnClose() As %Status
1818
return $$$OK
1919
}
2020

21-
ClassMethod EnsureRequestExists(Output request As Frontier.UnitTest.FakeRequest, url As %String, method As %String, payload As %DynamicObject, auth As %String = "Basic Zm9vOmJhcg==") As %Status [ Internal, Private ]
21+
ClassMethod EnsureRequestExists(Output request As Frontier.DevTools.FakeRequest, url As %String, method As %String, payload As %DynamicObject, auth As %String = "Basic Zm9vOmJhcg==") As %Status [ Internal, Private ]
2222
{
2323
do ##class(%Net.URLParser).Parse(url, .components)
2424
do ParseQueryString(components("query"), .data)

frontier-prod.xml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ SetChallenge(strategy)
603603
<Method name="EnsureRequestExists">
604604
<Internal>1</Internal>
605605
<ClassMethod>1</ClassMethod>
606-
<FormalSpec>*request:Frontier.UnitTest.FakeRequest,url:%String,method:%String,payload:%DynamicObject,auth:%String="Basic Zm9vOmJhcg=="</FormalSpec>
606+
<FormalSpec>*request:Frontier.DevTools.FakeRequest,url:%String,method:%String,payload:%DynamicObject,auth:%String="Basic Zm9vOmJhcg=="</FormalSpec>
607607
<Private>1</Private>
608608
<ReturnType>%Status</ReturnType>
609609
<Implementation><![CDATA[
@@ -4355,4 +4355,20 @@ curl -H "Authorization: Basic Zm9vOmJhcg==" 'http://localhost:57772/api/frontier
43554355
</tbody>
43564356
</table>
43574357
]]></CSP>
4358+
4359+
4360+
<Routine name="frontier" type="INC"><![CDATA[
4361+
#include %ZEN.Utils
4362+
4363+
#define ltrim(%str) $zstrip(%str, "<W")
4364+
#define rtrim(%str) $zstrip(%str, ">W")
4365+
#define trim(%str) $zstrip(%str, "<>W")
4366+
#define trimQuote(%str) $zstrip(%str, "<>", $c(34))
4367+
#define IsSQLQuery(%str) ($$$ucase($extract($$$trim(%str), 6)) = "SELECT")
4368+
#define KeyGroup(%requestKey) $zstrip($zstrip(%requestKey, "<=N"), "=>N")
4369+
#define KeyIndex(%requestKey) $zstrip($zstrip(%requestKey, "<=N"), "<=A")
4370+
#define FormatBoolean(%value) $case(%value, 1: "true", 0: "false", : %value)
4371+
#define BooleanToBinary(%value) $case(%value, "true": 1, "false": 0, : %value)
4372+
#define NormalizeClassName(%cn) if $l(%cn, ".") = 1 && ($e(%cn) = "%") set %cn = "%Library."_$e(%cn, 2, *)
4373+
]]></Routine>
43584374
</Export>

frontier.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ SetChallenge(strategy)
603603
<Method name="EnsureRequestExists">
604604
<Internal>1</Internal>
605605
<ClassMethod>1</ClassMethod>
606-
<FormalSpec>*request:Frontier.UnitTest.FakeRequest,url:%String,method:%String,payload:%DynamicObject,auth:%String="Basic Zm9vOmJhcg=="</FormalSpec>
606+
<FormalSpec>*request:Frontier.DevTools.FakeRequest,url:%String,method:%String,payload:%DynamicObject,auth:%String="Basic Zm9vOmJhcg=="</FormalSpec>
607607
<Private>1</Private>
608608
<ReturnType>%Status</ReturnType>
609609
<Implementation><![CDATA[

0 commit comments

Comments
 (0)