update
This commit is contained in:
@@ -13,15 +13,6 @@ class VmOwnershipTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
|
||||
private function buildClientAccessToken(): string
|
||||
{
|
||||
$key = hex2bin((string) config('services.client_api.key'));
|
||||
$secret = (string) config('services.client_api.secret');
|
||||
$iv = random_bytes(16);
|
||||
$ciphertext = openssl_encrypt($secret, 'aes-256-cbc', $key, OPENSSL_RAW_DATA, $iv);
|
||||
|
||||
return base64_encode($iv . $ciphertext);
|
||||
}
|
||||
|
||||
public function test_customer_cannot_read_power_state_of_another_customers_vm_by_numeric_id(): void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user