File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,23 @@ public function testCreate()
14
14
static ::$ _client ->secretKey ()->delete ($ keyId );
15
15
}
16
16
17
+ public function testCreateAutoIp ()
18
+ {
19
+ $ keyId = static ::$ _client ->secretKey ()->create ();
20
+ $ this ->assertNotEmpty ($ keyId );
21
+ static ::$ _client ->secretKey ()->delete ($ keyId );
22
+ }
23
+
24
+ public function testCreateWithDescription ()
25
+ {
26
+ $ keyId = static ::$ _client ->secretKey ()->create ('192.168.0.1 ' , 'test key ' );
27
+ $ keyInfo = static ::$ _client ->secretKey ()->get ($ keyId );
28
+
29
+ $ this ->assertEquals ('test key ' , $ keyInfo ->description );
30
+
31
+ static ::$ _client ->secretKey ()->delete ($ keyId );
32
+ }
33
+
17
34
public function testGet ()
18
35
{
19
36
$ keyId = static ::$ _client ->secretKey ()->create ('192.168.0.1 ' );
You can’t perform that action at this time.
0 commit comments