Add sudo permission to tempest user in senario test

gate_hook.sh adds sudo to group list of tempest user to use sudo in
scenario test. But NOPASSWD tag to sudo group was removed from sudoers

Change-Id: I21f2909851b6cf64569f5828225b3fd4b8f275d5
This commit is contained in:
fumihiko kakuma 2017-04-24 19:57:51 +09:00
parent aeec382d24
commit 2d75f5fc9e

View File

@ -76,7 +76,7 @@ function configure_docker_test_env {
sudo pip install -c https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt ryu
fi
RYU_PATH=`pip show ryu | grep Location | cut -d' ' -f2`/ryu
sudo usermod -aG sudo tempest
sudo bash -c 'echo "tempest ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers'
bash $RYU_PATH/tests/integrated/common/install_docker_test_pkg.sh --sudo-pip
}