Browse Source

Add __all__ to __init__ for service clients

Make it easier to consume the service clients by defining
__alll__ in the __init__ of v1 v2 and admin service clients.

Change-Id: I65f5aaa59124c3564911004fd8c7532247ea114c
Andrea Frittoli 1 year ago
parent
commit
5a880e6d72

+ 19
- 0
designate_tempest_plugin/services/dns/__init__.py View File

@@ -0,0 +1,19 @@
1
+# Copyright (c) 2017 Andrea Frittoli
2
+#
3
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
+# use this file except in compliance with the License. You may obtain a copy of
5
+# the License at
6
+#
7
+#    http://www.apache.org/licenses/LICENSE-2.0
8
+#
9
+# Unless required by applicable law or agreed to in writing, software
10
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+# License for the specific language governing permissions and limitations under
13
+# the License.
14
+
15
+from designate_tempest_plugin.services.dns import admin
16
+from designate_tempest_plugin.services.dns import v1
17
+from designate_tempest_plugin.services.dns import v2
18
+
19
+__all__ = ['admin', 'v1', 'v2']

+ 18
- 0
designate_tempest_plugin/services/dns/admin/__init__.py View File

@@ -0,0 +1,18 @@
1
+# Copyright (c) 2017 Andrea Frittoli
2
+#
3
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
+# use this file except in compliance with the License. You may obtain a copy of
5
+# the License at
6
+#
7
+#    http://www.apache.org/licenses/LICENSE-2.0
8
+#
9
+# Unless required by applicable law or agreed to in writing, software
10
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+# License for the specific language governing permissions and limitations under
13
+# the License.
14
+
15
+from designate_tempest_plugin.services.dns.admin.json.quotas_client import \
16
+    QuotasClient
17
+
18
+__all__ = ['QuotasClient']

+ 22
- 0
designate_tempest_plugin/services/dns/v1/__init__.py View File

@@ -0,0 +1,22 @@
1
+# Copyright (c) 2017 Andrea Frittoli
2
+#
3
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
+# use this file except in compliance with the License. You may obtain a copy of
5
+# the License at
6
+#
7
+#    http://www.apache.org/licenses/LICENSE-2.0
8
+#
9
+# Unless required by applicable law or agreed to in writing, software
10
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+# License for the specific language governing permissions and limitations under
13
+# the License.
14
+
15
+from designate_tempest_plugin.services.dns.v1.json.domains_client import \
16
+    DomainsClient
17
+from designate_tempest_plugin.services.dns.v1.json.records_client import \
18
+    RecordsClient
19
+from designate_tempest_plugin.services.dns.v1.json.servers_client import \
20
+    ServersClient
21
+
22
+__all__ = ['DomainsClient', 'RecordsClient', 'ServersClient']

+ 40
- 0
designate_tempest_plugin/services/dns/v2/__init__.py View File

@@ -0,0 +1,40 @@
1
+# Copyright (c) 2017 Andrea Frittoli
2
+#
3
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
+# use this file except in compliance with the License. You may obtain a copy of
5
+# the License at
6
+#
7
+#    http://www.apache.org/licenses/LICENSE-2.0
8
+#
9
+# Unless required by applicable law or agreed to in writing, software
10
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+# License for the specific language governing permissions and limitations under
13
+# the License.
14
+
15
+from designate_tempest_plugin.services.dns.v2.json.blacklists_client import \
16
+    BlacklistsClient
17
+from designate_tempest_plugin.services.dns.v2.json.pool_client import \
18
+    PoolClient
19
+from designate_tempest_plugin.services.dns.v2.json.quotas_client import \
20
+    QuotasClient
21
+from designate_tempest_plugin.services.dns.v2.json.recordset_client import \
22
+    RecordsetClient
23
+from designate_tempest_plugin.services.dns.v2.json.tld_client import TldClient
24
+from designate_tempest_plugin.services.dns.v2.json.transfer_accepts_client \
25
+    import TransferAcceptClient
26
+from designate_tempest_plugin.services.dns.v2.json.transfer_request_client \
27
+    import TransferRequestClient
28
+from designate_tempest_plugin.services.dns.v2.json.tsigkey_client import \
29
+    TsigkeyClient
30
+from designate_tempest_plugin.services.dns.v2.json.zone_exports_client import \
31
+    ZoneExportsClient
32
+from designate_tempest_plugin.services.dns.v2.json.zone_imports_client import \
33
+    ZoneImportsClient
34
+from designate_tempest_plugin.services.dns.v2.json.zones_client import \
35
+    ZonesClient
36
+
37
+__all__ = ['BlacklistsClient', 'PoolClient', 'QuotasClient', 'RecordsetClient',
38
+           'TldClient', 'TransferAcceptClient', 'TransferRequestClient',
39
+           'TsigkeyClient', 'ZoneExportsClient', 'ZoneImportsClient',
40
+           'ZonesClient']

Loading…
Cancel
Save