jotted draft for a vision of the API (JSON-body structure) for creating complex hosting asset structures

This commit is contained in:
Michael Hoennig 2024-05-06 06:03:04 +02:00
parent a93c097f64
commit 6fce115c52

View File

@ -66,26 +66,47 @@ class HsHostingAssetControllerAcceptanceTest extends ContextBasedTestWithCleanup
.contentType("application/json") .contentType("application/json")
.body("", lenientlyEquals(""" .body("", lenientlyEquals("""
[ [
{
"type": "MANAGED_WEBSPACE",
"identifier": "aaa01",
"caption": "some Webspace",
"config": {
"HDD": 2048,
"RAM": 1,
"SDD": 512,
"extra": 42
}
},
{ {
"type": "MANAGED_SERVER", "type": "MANAGED_SERVER",
"identifier": "vm1011",
"caption": "some ManagedServer", "caption": "some ManagedServer",
"config": { "config": {
"CPU": 2, "CPU": 2,
"SDD": 512, "SDD": 512,
"extra": 42 "extra": 42
} },
"with": [
{
"type": "DNS-Setup",
"domain": "example.org",
...
},
{
"type": "EMail-Setup",
"domain": "example.org",
...
},
{
"type": "HTTP-Setup",
"domain": "example.org",
...
},
{
"type": "MANAGED_WEBSPACE",
"caption": "some Webspace",
"config": {
"HDD": 2048,
"RAM": 1,
"SDD": 512,
"extra": 42
},
"with": [
"type": "UNIX_USER",
"caption": "Website",
"config": {
}
]
}
]
}, },
{ {
"type": "CLOUD_SERVER", "type": "CLOUD_SERVER",