apigeelint
Version:
Node module and tool to lint a bundle for an Apigee API Proxy or sharedflow.
84 lines (75 loc) • 1.95 kB
text/xml
<ProxyEndpoint name="endpoint1">
<Description>Proxy Endpoint 1</Description>
<HTTPProxyConnection>
<BasePath>/BN010-missing-policies-example</BasePath>
<Properties/>
<VirtualHost>secure</VirtualHost>
</HTTPProxyConnection>
<FaultRules/>
<DefaultFaultRule name="fault-rule">
<Step>
<Name>AM-InjectProxyVersionHeader</Name>
</Step>
<AlwaysEnforce>true</AlwaysEnforce>
</DefaultFaultRule>
<PreFlow name="PreFlow">
<Request>
<Step>
<Name>JS-1</Name>
</Step>
</Request>
<Response>
<Step>
<Name>AM-CleanResponseHeaders</Name>
</Step>
</Response>
</PreFlow>
<PostFlow name="PostFlow">
<Request>
</Request>
<Response>
<Step>
<Name>AM-InjectProxyVersionHeader</Name>
</Step>
</Response>
</PostFlow>
<PostClientFlow name="PostClientFlow">
<!-- Request is not supported here. Should be flagged by other plugin. Not
part of this test. -->
<Request>
</Request>
<Response>
<Step>
<!-- This policy is missing; will be flagged by BN010. -->
<Name>AM-Missing-Policy-2</Name>
</Step>
</Response>
</PostClientFlow>
<Flows>
<Flow name="flow1">
<Request>
<Step>
<!-- No policy name; should be flagged by ST001, not part of this test. -->
<Name></Name>
</Step>
</Request>
<Response>
<Step>
<!-- This policy is missing; will be flagged by BN010. -->
<Name>AM-Response-1</Name>
</Step>
</Response>
<Condition>(proxy.pathsuffix MatchesPath "/tBN010") and (request.verb = "GET")</Condition>
</Flow>
<Flow name="unknown request">
<Request>
<Step>
<Name>RF-UnknownRequest</Name>
</Step>
</Request>
<Response>
</Response>
</Flow>
</Flows>
<RouteRule name="NoRouteRule"/>
</ProxyEndpoint>