Skip to content

Commit 817b525

Browse files
HuangYanyan-AmberfranklwyLiu Wenyuashorezfc11
authored andcommitted
Feature/ccm (huaweicloud#132)
* Add files via upload add huaweicloud Kafka custodian * Changes set-config Delete json-diff * delete import * rename set_config * Feature/dns (huaweicloud#9) add dns actions, filters, UTs * Feature/dns (huaweicloud#10) * add readme_dns * add readme_dns * add readme_dns * Update readme_dns.md * Update readme_dns.md * add dns * update readme_dns * update kafka * update client * update dns * update dns * update dns add dns_test * update dns_test update mock * add mock * update dns * Delete tools/c7n_huaweicloud/c7n_huaweicloud/resources/dns_files directory * update dns lint * lint modify * lint modify * modify * modify * update test --------- Co-authored-by: Liu Wenyu <[email protected]> * Create readme_dns.md * feat:ccm服务开发 * feat:scm服务开发 * feat:mock文件提交 * fix:修复查询DC资源测试用例报错的问题 * fix:修改lint门禁 * fix:lint门禁修改 * fix:lint门禁修改 * fix:test门禁修改 * fix:test门禁修改 * fix:修改lint门禁 * fix:mock文件修改 --------- Co-authored-by: franklwy <[email protected]> Co-authored-by: Liu Wenyu <[email protected]> Co-authored-by: zfc1996 <[email protected]>
1 parent 573f0dc commit 817b525

27 files changed

+4654
-0
lines changed
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
interactions:
2+
- request:
3+
body: null
4+
headers:
5+
Accept:
6+
- '*/*'
7+
Accept-Encoding:
8+
- gzip, deflate
9+
Connection:
10+
- keep-alive
11+
Content-Type:
12+
- application/json
13+
Host:
14+
- dns.ap-southeast-1.myhuaweicloud.com
15+
User-Agent:
16+
- huaweicloud-usdk-python/3.0
17+
X-Project-Id:
18+
- ap-southeat-1
19+
X-Sdk-Date:
20+
- 20250409T093109Z
21+
method: GET
22+
uri: https://dns.ap-southeast-1.myhuaweicloud.com/v2/zones?limit=100&type=private
23+
response:
24+
body:
25+
string: '{"links": {"self": "https://dns.huaweicloud.com/v2/zones?limit=100&type=private"},
26+
"zones": [{"id": "2c9eb1538a138432018a13aaaaa00001", "name": "private.example.com.",
27+
"description": "Example private zone", "email": "[email protected]", "zone_type":
28+
"private", "ttl": 300, "serial": 1678886401, "status": "ACTIVE", "record_num":
29+
1, "pool_id": "privpoolidexample", "project_id": "0605dc51495c4447b48f5168309f9b5f",
30+
"created_at": "2023-03-15T12:00:01Z", "updated_at": "2023-03-15T12:00:01Z",
31+
"links": {"self": "https://dns.huaweicloud.com/v2/zones/2c9eb1538a138432018a13aaaaa00001"},
32+
"masters": [], "routers": [], "tags": [], "enterprise_project_id": "0"}],
33+
"metadata": {"total_count": 1}}'
34+
headers:
35+
Connection:
36+
- keep-alive
37+
Content-Length:
38+
- '600'
39+
Content-Type:
40+
- application/json;charset=utf8
41+
Date:
42+
- Wed, 09 Apr 2025 09:31:09 GMT
43+
X-Request-Id:
44+
- 5d75ad9aeb9f25857185854728ea4e55
45+
status:
46+
code: 200
47+
message: success
48+
- request:
49+
body: '{"router": {"router_id": "vpc-c853fea981c3416c83181f7d01095375", "router_region":
50+
"ap-southeast-1"}}'
51+
headers:
52+
Accept:
53+
- '*/*'
54+
Accept-Encoding:
55+
- gzip, deflate
56+
Connection:
57+
- keep-alive
58+
Content-Length:
59+
- '96'
60+
Content-Type:
61+
- application/json;charset=utf8
62+
Host:
63+
- dns.ap-southeast-1.myhuaweicloud.com
64+
User-Agent:
65+
- huaweicloud-usdk-python/3.0
66+
X-Project-Id:
67+
- ap-southeat-1
68+
X-Sdk-Date:
69+
- 20250409T093110Z
70+
method: POST
71+
uri: https://dns.ap-southeast-1.myhuaweicloud.com/v2/zones/2c9eb1538a138432018a13aaaaa00001/associaterouter
72+
response:
73+
body:
74+
string: '{"router_id": "vpc-c853fea981c3416c83181f7d01095375", "router_region":
75+
"ap-southeast-1", "status": "PENDING_CREATE"}'
76+
headers:
77+
Connection:
78+
- keep-alive
79+
Content-Length:
80+
- '110'
81+
Content-Type:
82+
- application/json;charset=utf8
83+
Date:
84+
- Wed, 09 Apr 2025 09:31:10 GMT
85+
X-Request-Id:
86+
- 5d75ad9aeb9f25857185854728ea4e56
87+
status:
88+
code: 200
89+
message: success
90+
- request:
91+
body: null
92+
headers:
93+
Accept:
94+
- '*/*'
95+
Accept-Encoding:
96+
- gzip, deflate
97+
Connection:
98+
- keep-alive
99+
Content-Type:
100+
- application/json
101+
Host:
102+
- dns.ap-southeast-1.myhuaweicloud.com
103+
User-Agent:
104+
- huaweicloud-usdk-python/3.0
105+
X-Project-Id:
106+
- ap-southeat-1
107+
X-Sdk-Date:
108+
- 20250409T094717Z
109+
method: GET
110+
uri: https://dns.ap-southeast-1.myhuaweicloud.com/v2/zones/2c9eb1538a138432018a13aaaaa00001
111+
response:
112+
body:
113+
string: '{"id": "2c9eb1538a138432018a13aaaaa00001", "name": "private.example.com.", "description": "Example private zone", "email": "[email protected]", "zone_type": "private", "ttl": 300, "serial": 1678886401, "status": "ACTIVE", "record_num": 1, "pool_id": "privpoolidexample", "project_id": "0605dc51495c4447b48f5168309f9b5f", "created_at": "2023-03-15T12:00:01Z", "updated_at": "2023-03-15T12:00:01Z", "links": {"self": "https://dns.huaweicloud.com/v2/zones/2c9eb1538a138432018a13aaaaa00001"}, "masters": [], "routers": [{"router_id": "vpc-c853fea981c3416c83181f7d01095375", "router_region": "ap-southeast-1", "status": "ACTIVE"}], "tags": [], "enterprise_project_id": "0"}'
114+
headers:
115+
Connection:
116+
- keep-alive
117+
Content-Length:
118+
- '700'
119+
Content-Type:
120+
- application/json;charset=utf8
121+
Date:
122+
- Wed, 09 Apr 2025 09:47:17 GMT
123+
X-Request-Id:
124+
- e880cb990a54e7e652d4c36c1c97ccdb
125+
status:
126+
code: 200
127+
message: success
128+
version: 1
Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
interactions:
2+
- request:
3+
body: null
4+
headers:
5+
Accept:
6+
- '*/*'
7+
Accept-Encoding:
8+
- gzip, deflate
9+
Connection:
10+
- keep-alive
11+
Content-Type:
12+
- application/json
13+
Host:
14+
- dns.ap-southeast-1.myhuaweicloud.com
15+
User-Agent:
16+
- huaweicloud-usdk-python/3.0
17+
X-Project-Id:
18+
- ap-southeat-1
19+
X-Sdk-Date:
20+
- 20250409T093109Z
21+
method: GET
22+
uri: https://dns.ap-southeast-1.myhuaweicloud.com/v2/zones?limit=100&type=private
23+
response:
24+
body:
25+
string: '{"links": {"self": "https://dns.huaweicloud.com/v2/zones?limit=100&type=private"},
26+
"zones": [{"id": "2c9eb1538a138432018a13bbbbb00001", "name": "delete.example.com.",
27+
"description": "Zone to be deleted", "email": "[email protected]", "zone_type":
28+
"private", "ttl": 300, "serial": 1678886402, "status": "ACTIVE", "record_num":
29+
0, "pool_id": "privpooliddelete", "project_id": "0605dc51495c4447b48f5168309f9b5f",
30+
"created_at": "2023-03-15T12:00:02Z", "updated_at": "2023-03-15T12:00:02Z",
31+
"links": {"self": "https://dns.huaweicloud.com/v2/zones/2c9eb1538a138432018a13bbbbb00001"},
32+
"masters": [], "routers": [], "tags": [], "enterprise_project_id": "0"}],
33+
"metadata": {"total_count": 1}}'
34+
headers:
35+
Connection:
36+
- keep-alive
37+
Content-Length:
38+
- '600'
39+
Content-Type:
40+
- application/json;charset=utf8
41+
Date:
42+
- Wed, 09 Apr 2025 09:31:09 GMT
43+
X-Request-Id:
44+
- 4bf969f6450969a2fa6cf8868b50eef3
45+
status:
46+
code: 200
47+
message: success
48+
- request:
49+
body: null
50+
headers:
51+
Accept:
52+
- '*/*'
53+
Accept-Encoding:
54+
- gzip, deflate
55+
Connection:
56+
- keep-alive
57+
Content-Type:
58+
- application/json
59+
Host:
60+
- dns.ap-southeast-1.myhuaweicloud.com
61+
User-Agent:
62+
- huaweicloud-usdk-python/3.0
63+
X-Project-Id:
64+
- ap-southeat-1
65+
X-Sdk-Date:
66+
- 20250409T093110Z
67+
method: DELETE
68+
uri: https://dns.ap-southeast-1.myhuaweicloud.com/v2/zones/2c9eb1538a138432018a13bbbbb00001
69+
response:
70+
body:
71+
string: '{"id": "2c9eb1538a138432018a13bbbbb00001", "name": "delete.example.com.",
72+
"description": "Zone to be deleted", "email": "[email protected]", "zone_type":
73+
"private", "ttl": 300, "serial": 1678886402, "status": "PENDING_DELETE", "record_num":
74+
0, "pool_id": "privpooliddelete", "project_id": "0605dc51495c4447b48f5168309f9b5f",
75+
"created_at": "2023-03-15T12:00:02Z", "updated_at": "2023-03-15T12:00:02Z",
76+
"links": {"self": "https://dns.huaweicloud.com/v2/zones/2c9eb1538a138432018a13bbbbb00001"},
77+
"masters": [], "routers": [], "tags": [], "enterprise_project_id": "0"}'
78+
headers:
79+
Connection:
80+
- keep-alive
81+
Content-Length:
82+
- '550'
83+
Content-Type:
84+
- application/json;charset=utf8
85+
Date:
86+
- Wed, 09 Apr 2025 09:31:10 GMT
87+
X-Request-Id:
88+
- 4bf969f6450969a2fa6cf8868b50eef4
89+
status:
90+
code: 200
91+
message: success
92+
- request:
93+
body: null
94+
headers:
95+
Accept:
96+
- '*/*'
97+
Accept-Encoding:
98+
- gzip, deflate
99+
Connection:
100+
- keep-alive
101+
Content-Type:
102+
- application/json
103+
Host:
104+
- dns.ap-southeast-1.myhuaweicloud.com
105+
User-Agent:
106+
- huaweicloud-usdk-python/3.0
107+
X-Project-Id:
108+
- ap-southeat-1
109+
X-Sdk-Date:
110+
- 20250409T094717Z
111+
method: GET
112+
uri: https://dns.ap-southeast-1.myhuaweicloud.com/v2/zones/2c9eb1538a138432018a13bbbbb00001
113+
response:
114+
body:
115+
string: '{"error_msg":"Incorrect IAM authentication information: Unauthorized","error_code":"APIGW.0301","request_id":"da3eac5e85cf6b8b254ca1147facaacd"}
116+
117+
'
118+
headers:
119+
Connection:
120+
- keep-alive
121+
Content-Type:
122+
- application/json
123+
Date:
124+
- Wed, 09 Apr 2025 09:47:18 GMT
125+
Server:
126+
- CloudWAF
127+
Set-Cookie:
128+
- HWWAFSESTIME=1744192038073; path=/
129+
- HWWAFSESID=4862673fb5527aa0a8; path=/
130+
Strict-Transport-Security:
131+
- max-age=31536000; includeSubdomains;
132+
Transfer-Encoding:
133+
- chunked
134+
X-Content-Type-Options:
135+
- nosniff
136+
X-Download-Options:
137+
- noopen
138+
X-Frame-Options:
139+
- SAMEORIGIN
140+
X-Request-Id:
141+
- da3eac5e85cf6b8b254ca1147facaacd
142+
X-XSS-Protection:
143+
- 1; mode=block;
144+
status:
145+
code: 401
146+
message: Unauthorized
147+
version: 1

0 commit comments

Comments
 (0)