For these AKV tests check env despite not AE connected
This commit is contained in:
parent
5a666103dd
commit
f6e450b408
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Test client ID/secret credentials for Azure Key Vault for Always Encrypted.
|
Test client ID/secret credentials for Azure Key Vault for Always Encrypted.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php require('skipif_mid-refactor.inc'); ?>
|
<?php require('skipif_not_akv.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require_once('pdo_ae_azure_key_vault_common.php');
|
require_once('pdo_ae_azure_key_vault_common.php');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Test connection keywords for Azure Key Vault for Always Encrypted.
|
Test connection keywords for Azure Key Vault for Always Encrypted.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php require('skipif_mid-refactor.inc'); ?>
|
<?php require('skipif_not_akv.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require_once('pdo_ae_azure_key_vault_common.php');
|
require_once('pdo_ae_azure_key_vault_common.php');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Test username/password credentials for Azure Key Vault for Always Encrypted.
|
Test username/password credentials for Azure Key Vault for Always Encrypted.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php require('skipif_mid-refactor.inc'); ?>
|
<?php require('skipif_not_akv.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require_once('pdo_ae_azure_key_vault_common.php');
|
require_once('pdo_ae_azure_key_vault_common.php');
|
||||||
|
|
15
test/functional/pdo_sqlsrv/skipif_not_akv.inc
Normal file
15
test/functional/pdo_sqlsrv/skipif_not_akv.inc
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
if (!extension_loaded("pdo") || !extension_loaded('pdo_sqlsrv')) {
|
||||||
|
die("PDO driver cannot be loaded; skipping test.\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
require_once("MsSetup.inc");
|
||||||
|
require_once("MsCommon_mid-refactor.inc");
|
||||||
|
|
||||||
|
$dsn = getDSN($server, null);
|
||||||
|
$conn = new PDO($dsn, $uid, $pwd);
|
||||||
|
if (! $conn) {
|
||||||
|
echo("Error: could not connect during SKIPIF!");
|
||||||
|
} elseif (!isAEQualified($conn)) {
|
||||||
|
die("skip - AE feature not supported in the current environment.");
|
||||||
|
}
|
15
test/functional/sqlsrv/skipif_not_akv.inc
Normal file
15
test/functional/sqlsrv/skipif_not_akv.inc
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
if (! extension_loaded("sqlsrv")) {
|
||||||
|
die("skip extension not loaded");
|
||||||
|
}
|
||||||
|
|
||||||
|
require_once('MsCommon.inc');
|
||||||
|
|
||||||
|
$conn = AE\connect();
|
||||||
|
if (! $conn) {
|
||||||
|
echo("Error: could not connect during SKIPIF!");
|
||||||
|
} elseif (!AE\isQualified($conn)) {
|
||||||
|
die("skip - AE feature not supported in the current environment.");
|
||||||
|
}
|
||||||
|
?>
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Test client ID/secret credentials for Azure Key Vault for Always Encrypted.
|
Test client ID/secret credentials for Azure Key Vault for Always Encrypted.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php require('skipif_versions_old.inc'); ?>
|
<?php require('skipif_not_akv.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require_once('sqlsrv_ae_azure_key_vault_common.php');
|
require_once('sqlsrv_ae_azure_key_vault_common.php');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Test connection keywords for Azure Key Vault for Always Encrypted.
|
Test connection keywords for Azure Key Vault for Always Encrypted.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php require('skipif_versions_old.inc'); ?>
|
<?php require('skipif_not_akv.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require_once('sqlsrv_ae_azure_key_vault_common.php');
|
require_once('sqlsrv_ae_azure_key_vault_common.php');
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Test username/password credentials for Azure Key Vault for Always Encrypted.
|
Test username/password credentials for Azure Key Vault for Always Encrypted.
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php require('skipif_versions_old.inc'); ?>
|
<?php require('skipif_not_akv.inc'); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require_once('sqlsrv_ae_azure_key_vault_common.php');
|
require_once('sqlsrv_ae_azure_key_vault_common.php');
|
||||||
|
|
Loading…
Reference in a new issue