php-sqlsrv/test/functional/pdo_sqlsrv/MsSetup.inc

57 lines
1.9 KiB
PHP
Raw Normal View History

2017-05-02 21:00:53 +02:00
<?php
/*
Microsoft SQL Server Driver for PHP/PDO - Unit Test Framework
Copyright (c) Microsoft Corporation. All rights reserved
Description:
Global variables defining the execution context
*/
if (isset($_ENV['MSSQL_SERVER']) || isset($_ENV['MSSQL_USER']) || isset($_ENV['MSSQL_PASSWORD'])) {
$server = $_ENV['MSSQL_SERVER'];
$uid = $_ENV['MSSQL_USER'];
$pwd = $_ENV['MSSQL_PASSWORD'];
$databaseName = $_ENV['MSSQL_DATABASE_NAME'];
$DriverName = $_ENV['MSSQL_DRIVER_NAME'];
} else {
2017-05-02 21:29:40 +02:00
$server = 'TARGET_SERVER';
2017-05-02 23:21:28 +02:00
$uid = 'TARGET_USERNAME';
$pwd = 'TARGET_PASSWORD';
2017-05-02 21:29:40 +02:00
$databaseName = 'TARGET_DATABASE';
2017-05-02 21:00:53 +02:00
}
$adServer = 'TARGET_AD_SERVER';
$adDatabase = 'TARGET_AD_DATABASE';
$adUser = 'TARGET_AD_USERNAME';
$adPassword = 'TARGET_AD_PASSWORD';
$adSPClientId = 'TARGET_ADSP_CLIENT_ID';
$adSPClientSecret = 'TARGET_ADSP_CLIENT_SECRET';
2017-05-02 21:00:53 +02:00
$driverType = true;
$driver = "ODBC Driver 17 for SQL Server";
2017-05-02 21:00:53 +02:00
$tableName = 'pdo_test_table';
$tableIndex = 'php_test_table_idx';
$procName = 'php_test_proc';
$fileName = 'php_test_file.dat';
$connectionOptions = array();
$daasMode = false;
$marsMode = true;
$dsnMode = true;
$traceEnabled = false;
$localeDisabled = false;
2017-05-02 21:00:53 +02:00
// column encryption variables
$keystore = "none"; // key store provider, acceptable values are none, win, ksp, akv
$dataEncrypted = false; // whether data is to be encrypted
2018-05-07 23:16:40 +02:00
// for Azure Key Vault
$AKVKeyStoreAuthentication = 'TARGET_AKV_AUTH'; // can be KeyVaultPassword or KeyVaultClientSecret
$AKVPrincipalName = 'TARGET_AKV_PRINCIPAL_NAME'; // for use with KeyVaultPassword
$AKVPassword = 'TARGET_AKV_PASSWORD'; // for use with KeyVaultPassword
$AKVClientID = 'TARGET_AKV_CLIENT_ID'; // for use with KeyVaultClientSecret
$AKVSecret = 'TARGET_AKV_CLIENT_SECRET'; // for use with KeyVaultClientSecret
2018-05-06 02:08:01 +02:00
// for enclave computations
$attestation = 'TARGET_ATTESTATION';
2017-07-20 20:44:46 +02:00
?>