/badsec_client

A small Ruby client script written to perform the AdHoc homework specified here: https://homework.adhoc.team/noclist/

Primary LanguageRuby

BADSEC NOClist Client

This is a Ruby client script written to perform the AdHoc homework specified here: https://homework.adhoc.team/noclist/

How to run the script

  1. First, ensure that you have the BADSEC server running locally by following AdHoc's instructions.

  2. Ensure you have your local Ruby environment set up to use ruby-2.6.5 and the bundler gem.

  3. Pull down the project

  4. In your command console, run:

    bundle install
    ruby exe/execute_script.rb
    

The user list output will appear in the console if the script runs successfully. Otherwise, there will be error logs, and the script will exit after unsuccessfully retrying either of the two requests 2 times.

How to run tests

In your command console, run:

rspec

or if that isn't working,

bundle exec rspec