jotted draft for a vision of the API (JSON-body structure) for creating complex hosting asset structures
This commit is contained in:
parent
a93c097f64
commit
6fce115c52
@ -66,26 +66,47 @@ class HsHostingAssetControllerAcceptanceTest extends ContextBasedTestWithCleanup
|
||||
.contentType("application/json")
|
||||
.body("", lenientlyEquals("""
|
||||
[
|
||||
{
|
||||
"type": "MANAGED_SERVER",
|
||||
"caption": "some ManagedServer",
|
||||
"config": {
|
||||
"CPU": 2,
|
||||
"SDD": 512,
|
||||
"extra": 42
|
||||
},
|
||||
"with": [
|
||||
{
|
||||
"type": "DNS-Setup",
|
||||
"domain": "example.org",
|
||||
...
|
||||
},
|
||||
{
|
||||
"type": "EMail-Setup",
|
||||
"domain": "example.org",
|
||||
...
|
||||
},
|
||||
{
|
||||
"type": "HTTP-Setup",
|
||||
"domain": "example.org",
|
||||
...
|
||||
},
|
||||
{
|
||||
"type": "MANAGED_WEBSPACE",
|
||||
"identifier": "aaa01",
|
||||
"caption": "some Webspace",
|
||||
"config": {
|
||||
"HDD": 2048,
|
||||
"RAM": 1,
|
||||
"SDD": 512,
|
||||
"extra": 42
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "MANAGED_SERVER",
|
||||
"identifier": "vm1011",
|
||||
"caption": "some ManagedServer",
|
||||
"with": [
|
||||
"type": "UNIX_USER",
|
||||
"caption": "Website",
|
||||
"config": {
|
||||
"CPU": 2,
|
||||
"SDD": 512,
|
||||
"extra": 42
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "CLOUD_SERVER",
|
||||
|
Loading…
Reference in New Issue
Block a user