1
|
|
|
# -*- coding: utf-8 -*- |
2
|
|
|
# Copyright (C) 2021 Greenbone Networks GmbH |
3
|
|
|
# |
4
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later |
5
|
|
|
# |
6
|
|
|
# This program is free software: you can redistribute it and/or modify |
7
|
|
|
# it under the terms of the GNU General Public License as published by |
8
|
|
|
# the Free Software Foundation, either version 3 of the License, or |
9
|
|
|
# (at your option) any later version. |
10
|
|
|
# |
11
|
|
|
# This program is distributed in the hope that it will be useful, |
12
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
13
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14
|
|
|
# GNU General Public License for more details. |
15
|
|
|
# |
16
|
|
|
# You should have received a copy of the GNU General Public License |
17
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
18
|
|
|
|
19
|
|
|
from ...gmpv208 import Gmpv208TestCase |
20
|
|
|
from .policies import ( |
21
|
|
|
GmpClonePolicyTestMixin, |
22
|
|
|
GmpCreatePolicyTestMixin, |
23
|
|
|
GmpDeletePolicyTestMixin, |
24
|
|
|
GmpGetPolicyTestMixin, |
25
|
|
|
GmpGetPoliciesTestMixin, |
26
|
|
|
GmpModifyPolicySetCommentTestMixin, |
27
|
|
|
GmpModifyPolicySetFamilySelectionTestMixin, |
28
|
|
|
GmpModifyPolicySetNameTestMixin, |
29
|
|
|
GmpModifyPolicySetNvtPreferenceTestMixin, |
30
|
|
|
GmpModifyPolicySetNvtSelectionTestMixin, |
31
|
|
|
GmpModifyPolicySetScannerPreferenceTestMixin, |
32
|
|
|
) |
33
|
|
|
|
34
|
|
|
|
35
|
|
|
class Gmpv208ClonePolicyTestCase(GmpClonePolicyTestMixin, Gmpv208TestCase): |
36
|
|
|
pass |
37
|
|
|
|
38
|
|
|
|
39
|
|
|
class Gmpv208CreatePolicyTestCase(GmpCreatePolicyTestMixin, Gmpv208TestCase): |
40
|
|
|
pass |
41
|
|
|
|
42
|
|
|
|
43
|
|
|
class Gmpv208DeletePolicyTestCase(GmpDeletePolicyTestMixin, Gmpv208TestCase): |
44
|
|
|
pass |
45
|
|
|
|
46
|
|
|
|
47
|
|
|
class Gmpv208GetPolicyTestCase(GmpGetPolicyTestMixin, Gmpv208TestCase): |
48
|
|
|
pass |
49
|
|
|
|
50
|
|
|
|
51
|
|
|
class Gmpv208GetPoliciesTestCase(GmpGetPoliciesTestMixin, Gmpv208TestCase): |
52
|
|
|
pass |
53
|
|
|
|
54
|
|
|
|
55
|
|
|
class Gmpv208ModifyPolicySetCommentTestCase( |
56
|
|
|
GmpModifyPolicySetCommentTestMixin, Gmpv208TestCase |
57
|
|
|
): |
58
|
|
|
pass |
59
|
|
|
|
60
|
|
|
|
61
|
|
|
class Gmpv208ModifyPolicySetFamilySelectionTestCase( |
62
|
|
|
GmpModifyPolicySetFamilySelectionTestMixin, Gmpv208TestCase |
63
|
|
|
): |
64
|
|
|
pass |
65
|
|
|
|
66
|
|
|
|
67
|
|
|
class Gmpv208ModifyPolicySetNvtSelectionTestCase( |
68
|
|
|
GmpModifyPolicySetNvtSelectionTestMixin, Gmpv208TestCase |
69
|
|
|
): |
70
|
|
|
pass |
71
|
|
|
|
72
|
|
|
|
73
|
|
|
class Gmpv208ModifyPolicySetNameTestCase( |
74
|
|
|
GmpModifyPolicySetNameTestMixin, Gmpv208TestCase |
75
|
|
|
): |
76
|
|
|
pass |
77
|
|
|
|
78
|
|
|
|
79
|
|
|
class Gmpv208ModifyPolicySetNvtPreferenceTestCase( |
80
|
|
|
GmpModifyPolicySetNvtPreferenceTestMixin, Gmpv208TestCase |
81
|
|
|
): |
82
|
|
|
pass |
83
|
|
|
|
84
|
|
|
|
85
|
|
|
class Gmpv208ModifyPolicySetScannerPreferenceTestCase( |
86
|
|
|
GmpModifyPolicySetScannerPreferenceTestMixin, Gmpv208TestCase |
87
|
|
|
): |
88
|
|
|
pass |
89
|
|
|
|