Skip to content

Commit 7635eb0

Browse files
authored
Add unit test coverage for Object Storage and LKE related methods/functions (#683)
* obj_test * obj_tests
1 parent 6c6e127 commit 7635eb0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1551
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"id": 123,
3+
"label": "test-cluster",
4+
"region": "us-east",
5+
"status": "ready",
6+
"apl_enabled": true,
7+
"created": "2025-01-23T00:00:00",
8+
"updated": "2025-01-23T00:00:00"
9+
}
10+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"acl": {
3+
"enabled": true,
4+
"addresses": {
5+
"ipv4": ["192.168.1.1/32"],
6+
"ipv6": ["2001:db8::/32"]
7+
},
8+
"revision_id": "rev-abc123"
9+
}
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"acl": {
3+
"enabled": true,
4+
"addresses": {
5+
"ipv4": ["10.0.0.1/32"],
6+
"ipv6": ["2001:db8::/64"]
7+
},
8+
"revision_id": "rev-abc124"
9+
}
10+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"id": 125,
3+
"label": "new-cluster",
4+
"region": "us-west",
5+
"status": "ready"
6+
}
7+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"url": "https://dashboard.example.com"
3+
}
4+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"id": 123,
3+
"label": "test-cluster",
4+
"region": "us-east",
5+
"status": "ready"
6+
}
7+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"kubeconfig": "base64-encoded-kubeconfig"
3+
}
4+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"data": [
3+
{
4+
"id": 123,
5+
"label": "test-cluster",
6+
"region": "us-east",
7+
"status": "ready"
8+
},
9+
{
10+
"id": 124,
11+
"label": "second-cluster",
12+
"region": "us-west",
13+
"status": "not_ready"
14+
}
15+
],
16+
"pages": 1,
17+
"results": 2
18+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"id": 3,
3+
"type": "g6-standard-2",
4+
"count": 3
5+
}
6+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"id": 1,
3+
"type": "pool-1",
4+
"count": 3,
5+
"autoscaler": {"enabled": true, "min": 1, "max": 5}
6+
}
7+

0 commit comments

Comments
 (0)