Skip to content

An apicast policy that fails successfully during its execution

License

Notifications You must be signed in to change notification settings

3scale-qe/apicast-failing-policy

Repository files navigation

APIcast Failing Policy

This policy is a simple policy that fails successfully during access phase or doesn't execute at all.

The configuration for the policy is as follow:

{
   "name":"failing",
   "version":"0.1",
   "configuration":{
      "fail_access": True
   }
}

With the configuration above, the policy will fail during the access phase, it could be useful for testing purposes.

OpenShift

To install this on OpenShift you can use provided template:

oc new-app -f openshift.yml --param AMP_RELEASE=2.2.0

The template creates new ImageStream for an Apicast image containing this policy. Then it creates two BuildConfigs: one for building an image to apicast-policy ImageStream and second one for creating new APIcast image copying just necessary code from that previous image.

License

MIT

About

An apicast policy that fails successfully during its execution

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published