Skip to content

Commit da9cb90

Browse files
authored
auto release for 0.9.0 (#16)
FEATURES: - Add `ucloudstack` product ENHANCEMENTS: - Add `deprecated` decorator
1 parent 57e3e0b commit da9cb90

File tree

14 files changed

+6470
-17
lines changed

14 files changed

+6470
-17
lines changed

docs/services.rst

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ USMS
7979
.. autoclass:: ucloud.services.usms.client.USMSClient
8080
:members:
8181

82+
VPC
83+
---
84+
85+
.. autoclass:: ucloud.services.vpc.client.VPCClient
86+
:members:
87+
8288

8389

8490
IPSecVPN
@@ -88,6 +94,13 @@ IPSecVPN
8894
:members:
8995

9096

97+
UCloudStack
98+
-----------
99+
100+
.. autoclass:: ucloud.services.ucloudstack.client.UCloudStackClient
101+
:members:
102+
103+
91104
UFS
92105
---
93106

@@ -101,10 +114,3 @@ UHub
101114
.. autoclass:: ucloud.services.uhub.client.UHubClient
102115
:members:
103116

104-
105-
VPC
106-
---
107-
108-
.. autoclass:: ucloud.services.vpc.client.VPCClient
109-
:members:
110-

tests/test_acceptance/conftest.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,22 @@
77
from ucloud.client import Client
88

99

10-
@pytest.fixture(scope="session", autouse=True, name="client")
11-
def client_factory():
10+
@pytest.fixture(scope="session", autouse=True)
11+
def ustack_client():
12+
return Client(
13+
{
14+
"base_url": "http://192.168.179.2/api",
15+
"region": "cn",
16+
"public_key": os.getenv("UCLOUDSTACK_PUBLIC_KEY"),
17+
"private_key": os.getenv("UCLOUDSTACK_PRIVATE_KEY"),
18+
"max_retries": 10,
19+
"timeout": 60,
20+
}
21+
)
22+
23+
24+
@pytest.fixture(scope="session", autouse=True)
25+
def client():
1226
return Client(
1327
{
1428
"region": "cn-bj2",

0 commit comments

Comments
 (0)