#!/bin/bash
set -evx

sudo chef-server-ctl test -J $WORKSPACE/pedant.xml --all --compliance-proxy-tests

if [ "$OMNIBUS_FIPS_MODE" == "true" ]
then
  sudo sh -c 'echo -e "\nfips true" >> /etc/opscode/chef-server.rb'
  sudo chef-server-ctl reconfigure
  echo ""
  echo "Sleeping 120 seconds to allow the Chef Server to reconfigure in FIPS mode"
  echo ""
  sleep 120
  sudo chef-server-ctl test -J $WORKSPACE/pedant-fips.xml --smoke --compliance-proxy-tests
fi

#!/bin/bash
set -evx

sudo chef-server-ctl test -J $WORKSPACE/pedant.xml --all

if [ "$OMNIBUS_FIPS_MODE" == "true" ]
then
  sudo sh -c 'echo -e "\nfips true" >> /etc/opscode/chef-server.rb'
  sudo chef-server-ctl reconfigure
  echo ""
  echo "Sleeping 120 seconds to allow the Chef Server to reconfigure in FIPS mode"
  echo ""
  sleep 120
  sudo chef-server-ctl test -J $WORKSPACE/pedant-fips.xml --smoke
fi

Disable new auth redirect tests until we update to confirm startup
Disable new auth redirect tests until we update to confirm startup

Signed-off-by: Marc A. Paradise <4ac6359ea5d0ef3cc5b5e469a74ec987143cad16@gmail.com>
