This is the integration test suite for the Network Access Control (NAC) service.
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
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
make test
make serve
make serve-admin
Note: the RADIUS server needs the Admin Portal to be running
make serve-server
Shell into the Client - which runs the tests
make shell-client
Run an independent test:
bundle exec rspec ./spec/name_of_test_file.rb