gojek / proctor

A Developer-Friendly Automation Orchestrator
Apache License 2.0
123 stars 43 forks source link

Validate .proctor.yaml configuration #49

Closed jensoncs closed 5 years ago

jensoncs commented 5 years ago
  1. Validate $HOME/.proctor/proctor.yml file exists, if not give instructions on user about creating the yaml files
  2. Validation .proctor.yml file's presence and check for mandatory parameters like PROCTOR_HOST, EMAIL_ID and ACCESS_TOKEN. Give warning if parameters missing.
  3. If received 401 from server, check for presence of EMAIL_ID and ACCESS_TOKEN and ask for setting the same 2.1 If received 401, and EMAIL_ID and ACCESS_TOKEN present, give user warning on invalid ACCESS_TOKEN and regenerate one
  4. If unable to reach host, print out error message for reachability and checking internet/vpn connection