def test_hdp_select_other_linux(self, mock, mock2): try: service_installer.install_hdp_select() self.fail('Should fail with a non-linux operating system') except EnvironmentError as e: assert str( e ) == 'Must be using one of: CentOS 6.x, CentOS 7.x, Ubuntu 12.x, Ubuntu 14.x'
def test_hdp_select_non_linux(self, mock, mock2): try: service_installer.install_hdp_select() self.fail('Should fail with a non-linux operating system') except EnvironmentError as e: assert str( e ) == 'You must be running a linux distribution to install hdp-select'
def test_hdp_select_other_linux(self, mock, mock2): try: service_installer.install_hdp_select() self.fail('Should fail with a non-linux operating system') except EnvironmentError as e: assert str(e) == 'Must be using one of: CentOS 6.x, CentOS 7.x, Ubuntu 12.x, Ubuntu 14.x'
def test_hdp_select_non_linux(self, mock, mock2): try: service_installer.install_hdp_select() self.fail('Should fail with a non-linux operating system') except EnvironmentError as e: assert str(e) == 'You must be running a linux distribution to install hdp-select'
def test_hdp_select_ubuntu_14_fail(self, mock, mock2): assert False == service_installer.install_hdp_select()
def test_hdp_select_centos_7_fail(self, mock, mock2): assert False == service_installer.install_hdp_select()
def test_hdp_select_ubuntu_14_pass(self, mock, mock2): assert True == service_installer.install_hdp_select()
def test_hdp_select_centos_7_pass(self, mock, mock2): assert True == service_installer.install_hdp_select()