fix: correct rainyunServer JSON field names to match actual API (PascalCase)
This commit is contained in:
@@ -18,15 +18,16 @@ func TestServerList(t *testing.T) {
|
||||
"data": map[string]any{
|
||||
"Records": []map[string]any{
|
||||
{
|
||||
"ID": 12001,
|
||||
"name": "web-server",
|
||||
"status": "running",
|
||||
"ip": "1.2.3.4",
|
||||
"vcpu": 2,
|
||||
"memory": 4096,
|
||||
"disk": 50,
|
||||
"os": "Ubuntu 22.04",
|
||||
"ExpDate": 1756656000,
|
||||
"ID": 12001,
|
||||
"HostName": "web-server",
|
||||
"status": "running",
|
||||
"MainIPv4": "1.2.3.4",
|
||||
"CPU": 2,
|
||||
"memory": 4096,
|
||||
"disk": 50,
|
||||
"OsName": "Ubuntu 22.04",
|
||||
"Zone": "cn-sy1",
|
||||
"ExpDate": 1756656000,
|
||||
},
|
||||
},
|
||||
"TotalRecords": 1,
|
||||
|
||||
Reference in New Issue
Block a user