tests/protocols/gmpv214/entities/scanners/test_create_scanner.py 1 location
|
@@ 82-98 (lines=17) @@
|
| 79 |
|
credential_id='c1', |
| 80 |
|
) |
| 81 |
|
|
| 82 |
|
def test_create_scanner_missing_port(self): |
| 83 |
|
with self.assertRaises(RequiredArgument): |
| 84 |
|
self.gmp.create_scanner( |
| 85 |
|
name='foo', |
| 86 |
|
host='localhost', |
| 87 |
|
port=None, |
| 88 |
|
scanner_type=ScannerType.OSP_SCANNER_TYPE, |
| 89 |
|
credential_id='c1', |
| 90 |
|
) |
| 91 |
|
|
| 92 |
|
with self.assertRaises(RequiredArgument): |
| 93 |
|
self.gmp.create_scanner( |
| 94 |
|
name='foo', |
| 95 |
|
host='localhost', |
| 96 |
|
port='', |
| 97 |
|
scanner_type=ScannerType.OSP_SCANNER_TYPE, |
| 98 |
|
credential_id='c1', |
| 99 |
|
) |
| 100 |
|
|
| 101 |
|
def test_create_scanner_missing_scanner_type(self): |
tests/protocols/gmpv208/entities/scanners/test_create_scanner.py 1 location
|
@@ 82-98 (lines=17) @@
|
| 79 |
|
credential_id='c1', |
| 80 |
|
) |
| 81 |
|
|
| 82 |
|
def test_create_scanner_missing_port(self): |
| 83 |
|
with self.assertRaises(RequiredArgument): |
| 84 |
|
self.gmp.create_scanner( |
| 85 |
|
name='foo', |
| 86 |
|
host='localhost', |
| 87 |
|
port=None, |
| 88 |
|
scanner_type=ScannerType.OSP_SCANNER_TYPE, |
| 89 |
|
credential_id='c1', |
| 90 |
|
) |
| 91 |
|
|
| 92 |
|
with self.assertRaises(RequiredArgument): |
| 93 |
|
self.gmp.create_scanner( |
| 94 |
|
name='foo', |
| 95 |
|
host='localhost', |
| 96 |
|
port='', |
| 97 |
|
scanner_type=ScannerType.OSP_SCANNER_TYPE, |
| 98 |
|
credential_id='c1', |
| 99 |
|
) |
| 100 |
|
|
| 101 |
|
def test_create_scanner_missing_scanner_type(self): |