Skip to content

ministryofjustice/network-access-control-integration-tests

Repository files navigation

repo standards badge

Network Access Control Integration Tests

This is the integration test suite for the Network Access Control (NAC) service.

Getting Started

The integration test suite is dependent on the Network Access Control Server and Network Access Control Admin repositories.

Clone the repositories:

make clone-server

and then

make clone-admin

Authenticating with DockerHub

Local development shouldn't go over the download limits of Dockerhub. https://docs.docker.com/docker-hub/download-rate-limit/

If these limits are encountered, authenticating with Docker is required:

export DOCKER_USERNAME=your-docker-hub-username
export DOCKER_PASSWORD=your-docker-hub-password

make authenticate-docker

Running the integration tests

make test

Run all containers (Admin Portal, Radsecproxy, test-client, NACS RADIUS Server, and CRL endpoint)

make serve

Running the NACS Admin Portal

make serve-admin

Running the NACS RADIUS Server

Note: the RADIUS server needs the Admin Portal to be running

make serve-server

Running a single test

Shell into the Client - which runs the tests

make shell-client

Run an independent test:

bundle exec rspec ./spec/name_of_test_file.rb

About

Integration tests for the Network Access Control Service

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published