We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9de9a6 commit 3933ee1Copy full SHA for 3933ee1
tests/SecretKeyTest.php
@@ -14,6 +14,23 @@ public function testCreate()
14
static::$_client->secretKey()->delete($keyId);
15
}
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
32
33
34
public function testGet()
35
{
36
$keyId = static::$_client->secretKey()->create('192.168.0.1');
0 commit comments