You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* add docker-compose to make testing easier
* update default version to 1.19.0
* minor readme update
* fix 569JNRXZghiklms>#
* Print status indicator as Curity starts, use -f on curl instead of redirect to /dev/null, and add -f option to prove
* Skip if debug symbols aren't configured because then debug log message that the test looks for won't be present
* added note in readme about env variables for test
Co-authored-by: Travis Spencer <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+12-7
Original file line number
Diff line number
Diff line change
@@ -287,15 +287,20 @@ Pre-built binaries of this module are provided for the following versions of NGI
287
287
288
288
## Testing
289
289
290
-
To test this module, you'll need the [Test::Nginx Perl module](https://github.com/openresty/test-nginx)installed. Then, run `prove` passing in the test or test directory (`t`). This can be done automatically by running `make test`. If Curity isn't running or the `idsh` command can't be found in the system path, then the functional tests that require such a connection will be skipped. Curity should be configured with an OAuth profile that has:
290
+
To test this module, you'll need the [Test::Nginx Perl module](https://github.com/openresty/test-nginx)and [docker-compose](https://docs.docker.com/compose/install/) installed.
291
291
292
-
* A run-time node listening on `localhost` port `8443` for HTTP (not HTTPS) traffic;
293
-
* A token endpoint with a URI of `/dev/oauth/token`;
294
-
* An introspection endpoint with a URI of `/introspection`;
295
-
* An OAuth client named `client-one` with a secret of `0ne!Secret` and the client credential capability; and
296
-
* An OAuth client named `test_gateway_client` and a secret of `Password1` with the introspection capability.
292
+
To run the tests do the following:
297
293
298
-
Internet access to `httpbin.org` is required for the `curity.t` test suite to pass.
294
+
* run `./configure`, make sure you select _No_ for Dynamic module
295
+
* run `make`
296
+
* Setup an `ADMIN_PASSWORD` and the `LICENSE_KEY` for the Curity Identity server that is used in tests*
297
+
* run `make test`
298
+
299
+
This, will run `prove` passing in the test or test directory (`t`).
300
+
301
+
Internet access to `hub.docker.com` is required for the `curity.t` test suite to pass, if the images required are not present locally.
302
+
303
+
\* These variables can be set inline, in your environment or in the docker-compose.yaml file.
299
304
300
305
NGINX must be in the system path; the tests will run the first `nginx` command that's found or bail if none is located. Also, the tests assume that the module is statically linked with NGINX. Before running them, be sure that the module is linked into the NGINX binary. Also, debug logging must be compiled into NGINX for some tests in `config.t` to pass. (This is the case if `nginx -V` includes `--with-debug` in the output.)
0 commit comments