@@ 44-60 (lines=17) @@ | ||
41 | '</create_scanner>' |
|
42 | ) |
|
43 | ||
44 | def test_create_scanner_missing_name(self): |
|
45 | with self.assertRaises(RequiredArgument): |
|
46 | self.gmp.create_scanner( |
|
47 | name=None, |
|
48 | host='localhost', |
|
49 | port=1234, |
|
50 | scanner_type=ScannerType.OSP_SCANNER_TYPE, |
|
51 | credential_id='c1', |
|
52 | ) |
|
53 | ||
54 | with self.assertRaises(RequiredArgument): |
|
55 | self.gmp.create_scanner( |
|
56 | name='', |
|
57 | host='localhost', |
|
58 | port=1234, |
|
59 | scanner_type='1', |
|
60 | credential_id='c1', |
|
61 | ) |
|
62 | ||
63 | def test_create_scanner_missing_host(self): |
@@ 44-60 (lines=17) @@ | ||
41 | '</create_scanner>' |
|
42 | ) |
|
43 | ||
44 | def test_create_scanner_missing_name(self): |
|
45 | with self.assertRaises(RequiredArgument): |
|
46 | self.gmp.create_scanner( |
|
47 | name=None, |
|
48 | host='localhost', |
|
49 | port=1234, |
|
50 | scanner_type=ScannerType.OSP_SCANNER_TYPE, |
|
51 | credential_id='c1', |
|
52 | ) |
|
53 | ||
54 | with self.assertRaises(RequiredArgument): |
|
55 | self.gmp.create_scanner( |
|
56 | name='', |
|
57 | host='localhost', |
|
58 | port=1234, |
|
59 | scanner_type='1', |
|
60 | credential_id='c1', |
|
61 | ) |
|
62 | ||
63 | def test_create_scanner_missing_host(self): |