added skipif_not_ksp file as per review comment
This commit is contained in:
parent
99fa9c66dd
commit
834402ba8d
|
@ -1,12 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Fetch data from a prepopulated test table given a custom keystore provider
|
Fetch data from a prepopulated test table given a custom keystore provider
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php
|
<?php require('skipif_not_ksp.inc'); ?>
|
||||||
require('skipif_versions_old.inc');
|
|
||||||
require('MsSetup.inc');
|
|
||||||
if ($keystore != 'ksp')
|
|
||||||
die ( 'skip - this test requires a custom keystore provider.' );
|
|
||||||
?>
|
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require( 'MsSetup.inc' );
|
require( 'MsSetup.inc' );
|
||||||
|
|
|
@ -1,12 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Fetch encrypted data from a prepopulated test table given a custom keystore provider
|
Fetch encrypted data from a prepopulated test table given a custom keystore provider
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php
|
<?php require('skipif_not_ksp.inc'); ?>
|
||||||
require('skipif_versions_old.inc');
|
|
||||||
require('MsSetup.inc');
|
|
||||||
if ($keystore != 'ksp')
|
|
||||||
die ( 'skip - this test requires a custom keystore provider.' );
|
|
||||||
?>
|
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require( 'MsSetup.inc' );
|
require( 'MsSetup.inc' );
|
||||||
|
|
22
test/functional/pdo_sqlsrv/skipif_not_ksp.inc
Normal file
22
test/functional/pdo_sqlsrv/skipif_not_ksp.inc
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
if (! extension_loaded( 'pdo' ) || ! extension_loaded( 'pdo_sqlsrv' ))
|
||||||
|
die( "PDO driver cannot be loaded; skipping test.\n" );
|
||||||
|
|
||||||
|
require_once( "MsSetup.inc" );
|
||||||
|
|
||||||
|
if ($keystore != 'ksp')
|
||||||
|
die ( 'skip - this test requires a custom keystore provider.' );
|
||||||
|
|
||||||
|
require_once( "MsCommon.inc" );
|
||||||
|
|
||||||
|
$conn = new PDO( "sqlsrv:server = $server;", $uid, $pwd );
|
||||||
|
if( ! $conn )
|
||||||
|
{
|
||||||
|
echo( "Error: could not connect during SKIPIF!" );
|
||||||
|
}
|
||||||
|
else if(! IsAEQualified($conn))
|
||||||
|
{
|
||||||
|
die( "skip - AE feature not supported in the current environment." );
|
||||||
|
}
|
||||||
|
?>
|
23
test/functional/sqlsrv/skipif_not_ksp.inc
Normal file
23
test/functional/sqlsrv/skipif_not_ksp.inc
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
if(! extension_loaded( "sqlsrv" ) )
|
||||||
|
die( "skip extension not loaded" );
|
||||||
|
|
||||||
|
require_once( 'MsSetup.inc' );
|
||||||
|
|
||||||
|
if ($keystore != 'ksp')
|
||||||
|
die ( 'skip - this test requires a custom keystore provider.' );
|
||||||
|
|
||||||
|
require_once( 'MsCommon.inc' );
|
||||||
|
|
||||||
|
$conn = Connect();
|
||||||
|
if( ! $conn )
|
||||||
|
{
|
||||||
|
echo( "Error: could not connect during SKIPIF!" );
|
||||||
|
}
|
||||||
|
else if(! IsAEQualified( $conn ) )
|
||||||
|
{
|
||||||
|
die( "skip - AE feature not supported in the current environment." );
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
|
@ -1,12 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Fetch data from a prepopulated test table given a custom keystore provider
|
Fetch data from a prepopulated test table given a custom keystore provider
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php
|
<?php require('skipif_not_ksp.inc'); ?>
|
||||||
require('skipif_versions_old.inc');
|
|
||||||
require('MsSetup.inc');
|
|
||||||
if ($keystore != 'ksp')
|
|
||||||
die ( 'skip - this test requires a custom keystore provider.' );
|
|
||||||
?>
|
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
sqlsrv_configure( 'WarningsReturnAsErrors', 1 );
|
sqlsrv_configure( 'WarningsReturnAsErrors', 1 );
|
||||||
|
|
|
@ -1,12 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Fetch encrypted data from a prepopulated test table given a custom keystore provider
|
Fetch encrypted data from a prepopulated test table given a custom keystore provider
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php
|
<?php require('skipif_not_ksp.inc'); ?>
|
||||||
require('skipif_versions_old.inc');
|
|
||||||
require('MsSetup.inc');
|
|
||||||
if ($keystore != 'ksp')
|
|
||||||
die ( 'skip - this test requires a custom keystore provider.' );
|
|
||||||
?>
|
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
sqlsrv_configure( 'WarningsReturnAsErrors', 1 );
|
sqlsrv_configure( 'WarningsReturnAsErrors', 1 );
|
||||||
|
|
|
@ -1,12 +1,7 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Test simple insert, fetch and update with ColumnEncryption enabled and a custome keystore provider
|
Test simple insert, fetch and update with ColumnEncryption enabled and a custome keystore provider
|
||||||
--SKIPIF--
|
--SKIPIF--
|
||||||
<?php
|
<?php require('skipif_not_ksp.inc'); ?>
|
||||||
require('skipif_versions_old.inc');
|
|
||||||
require('MsSetup.inc');
|
|
||||||
if ($keystore != 'ksp')
|
|
||||||
die ( 'skip - this test requires a custom keystore provider.' );
|
|
||||||
?>
|
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
function CreatePatientsTable()
|
function CreatePatientsTable()
|
||||||
|
|
Loading…
Reference in a new issue