Add ncat to the ubuntu image
Change-Id: Ib78c1eed717b27ccc1bdf2ec2a4fb7110129df40
This commit is contained in:
parent
92dbb0d709
commit
9270e7135b
|
@ -51,7 +51,10 @@ class UbuntuImageFixture(UbuntuMinimalImageFixture,
|
|||
ping
|
||||
"""
|
||||
|
||||
install_packages = ['iperf3', 'iputils-ping', 'nginx']
|
||||
install_packages = ['iperf3',
|
||||
'iputils-ping',
|
||||
'ncat',
|
||||
'nginx']
|
||||
|
||||
|
||||
class UbuntuFlavorStackFixture(_nova.FlavorStackFixture):
|
||||
|
|
|
@ -35,6 +35,12 @@ class UbuntuServerStackTest(test_cirros.CirrosServerStackTest):
|
|||
self.assertTrue(python_version.startswith('Python 3.'),
|
||||
python_version)
|
||||
|
||||
def test_ncat_command(self):
|
||||
output = sh.execute('ncat --version',
|
||||
ssh_client=self.stack.ssh_client).stderr.strip()
|
||||
self.assertIn('Ncat: Version', output)
|
||||
self.assertIn('https://nmap.org/ncat', output)
|
||||
|
||||
|
||||
class UbuntuMinimalServerStackTest(UbuntuServerStackTest):
|
||||
|
||||
|
@ -47,3 +53,6 @@ class UbuntuMinimalServerStackTest(UbuntuServerStackTest):
|
|||
|
||||
def test_ping_fixed_ipv6(self):
|
||||
tobiko.skip_test("ping not installed on image")
|
||||
|
||||
def test_ncat_command(self):
|
||||
tobiko.skip_test("ncat not installed on image")
|
||||
|
|
Loading…
Reference in New Issue