File tree Expand file tree Collapse file tree 1 file changed +72
-0
lines changed Expand file tree Collapse file tree 1 file changed +72
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,78 @@ public function testCreateWebspace()
6161 static ::$ _client ->webspace ()->delete ('id ' , $ webspace ->id );
6262 }
6363
64+ public function testRequestCreateWebspace ()
65+ {
66+ $ webspace = static ::$ _client ->webspace ()->request ([
67+ 'add ' => [
68+ 'gen_setup ' => [
69+ 'name ' => 'example-second-test.dom ' ,
70+ 'htype ' => 'vrt_hst ' ,
71+ 'status ' => '0 ' ,
72+ 'ip_address ' => [static ::_getIpAddress ()],
73+ ],
74+ 'hosting ' => [
75+ 'vrt_hst ' => [
76+ 'property ' => [
77+ [
78+ 'name ' => 'php_handler_id ' ,
79+ 'value ' => 'fastcgi ' ,
80+ ],
81+ [
82+ 'name ' => 'ftp_login ' ,
83+ 'value ' => 'ftp-login-test-1 ' ,
84+ ],
85+ [
86+ 'name ' => 'ftp_password ' ,
87+ 'value ' => 'ftp-password-test-1 ' ,
88+ ],
89+ ],
90+ 'ip_address ' => static ::_getIpAddress (),
91+ ],
92+ ],
93+ 'limits ' => [
94+ 'overuse ' => 'block ' ,
95+ 'limit ' => [
96+ [
97+ 'name ' => 'mbox_quota ' ,
98+ 'value ' => 100 ,
99+ ],
100+ ],
101+ ],
102+ 'prefs ' => [
103+ 'www ' => 'false ' ,
104+ 'stat_ttl ' => 6 ,
105+ ],
106+ 'performance ' => [
107+ 'bandwidth ' => 120 ,
108+ 'max_connections ' => 10000 ,
109+ ],
110+ 'permissions ' => [
111+ 'permission ' => [
112+ [
113+ 'name ' => 'manage_sh_access ' ,
114+ 'value ' => 'true ' ,
115+ ],
116+ ],
117+ ],
118+ 'php-settings ' => [
119+ 'setting ' => [
120+ [
121+ 'name ' => 'memory_limit ' ,
122+ 'value ' => '128M ' ,
123+ ],
124+ [
125+ 'name ' => 'safe_mode ' ,
126+ 'value ' => 'false ' ,
127+ ],
128+ ],
129+ ],
130+ 'plan-name ' => 'Unlimited ' ,
131+ ],
132+ ]);
133+ static ::$ _client ->webspace ()->delete ('id ' , $ webspace ->id );
134+ }
135+
64136 public function testDelete ()
65137 {
66138 $ domain = $ this ->_createDomain ();
You can’t perform that action at this time.
0 commit comments