Skip to content
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
xSQLv14 - - - - - - For tests not compatible with SQL Server 2016 - 2017
xSQLv15 - - - - - - For tests not compatible with SQL Server 2019 - - - -
xSQLv16 - - - - - - For tests not compatible with SQL Server 2022 - - - -
xSQLv17 - - - - - - For tests not compatible with SQL Server 2025 - - - -
xAzureSQLDB - - - - For tests not compatible with Azure SQL Database - -
xAzureSQLDW - - - - For tests not compatible with Azure Data Warehouse -
xAzureSQLMI - - - - For tests not compatible with Azure SQL Managed Instance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public class MSITest extends AESetup {
@Tag(Constants.xSQLv14)
@Tag(Constants.xSQLv15)
@Tag(Constants.xSQLv16)
@Tag(Constants.xSQLv17)
@Test
public void testManagedIdentityAuth() throws SQLException {
String connStr = connectionString;
Expand Down Expand Up @@ -82,6 +83,7 @@ private void testSimpleConnect(String connStr) {
@Tag(Constants.xSQLv14)
@Tag(Constants.xSQLv15)
@Tag(Constants.xSQLv16)
@Tag(Constants.xSQLv17)
@Test
public void testManagedIdentityAuthWithManagedIdentityClientId() throws SQLException {
String connStr = connectionString;
Expand Down Expand Up @@ -121,6 +123,7 @@ public void testManagedIdentityAuthWithManagedIdentityClientId() throws SQLExcep
@Tag(Constants.xSQLv14)
@Tag(Constants.xSQLv15)
@Tag(Constants.xSQLv16)
@Tag(Constants.xSQLv17)
@Test
public void testDSManagedIdentityAuth() throws SQLException {
String connStr = connectionString;
Expand All @@ -147,6 +150,7 @@ public void testDSManagedIdentityAuth() throws SQLException {
@Tag(Constants.xSQLv14)
@Tag(Constants.xSQLv15)
@Tag(Constants.xSQLv16)
@Tag(Constants.xSQLv17)
@Test
public void testDSManagedIdentityAuthWithManagedIdentityClientId() throws SQLException {
String connStr = connectionString;
Expand Down Expand Up @@ -176,6 +180,7 @@ public void testDSManagedIdentityAuthWithManagedIdentityClientId() throws SQLExc
@Tag(Constants.xSQLv14)
@Tag(Constants.xSQLv15)
@Tag(Constants.xSQLv16)
@Tag(Constants.xSQLv17)
@Test
public void testActiveDirectoryDefaultAuth() throws SQLException {
String connStr = connectionString;
Expand All @@ -196,6 +201,7 @@ public void testActiveDirectoryDefaultAuth() throws SQLException {
@Tag(Constants.xSQLv14)
@Tag(Constants.xSQLv15)
@Tag(Constants.xSQLv16)
@Tag(Constants.xSQLv17)
@Test
public void testActiveDirectoryDefaultAuthDS() throws SQLException {
String connStr = connectionString;
Expand Down Expand Up @@ -500,3 +506,4 @@ public void registerAKVProvider() throws Exception {
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ public void testEncryptedConnection() throws SQLException {
@Tag(Constants.xSQLv12)
@Tag(Constants.xSQLv14)
@Tag(Constants.xSQLv15)
@Tag(Constants.xSQLv17)
@Tag(Constants.xAzureSQLDW)
@Tag(Constants.xAzureSQLDB)
@Test
Expand Down Expand Up @@ -1537,6 +1538,7 @@ public void testGetSqlFedAuthTokenFailureNagativeWaiting() throws SQLException {
@Tag(Constants.xSQLv14)
@Tag(Constants.xSQLv15)
@Tag(Constants.xSQLv16)
@Tag(Constants.xSQLv17)
public void testManagedIdentityWithEncryptStrict() {
SQLServerDataSource ds = new SQLServerDataSource();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
import com.microsoft.sqlserver.jdbc.TestUtils;
import com.microsoft.sqlserver.testframework.AbstractSQLGenerator;
import com.microsoft.sqlserver.testframework.AbstractTest;
import com.microsoft.sqlserver.testframework.AzureDB;
import com.microsoft.sqlserver.testframework.Constants;
import com.microsoft.sqlserver.testframework.DBConnection;
import com.microsoft.sqlserver.testframework.DBResultSet;
import com.microsoft.sqlserver.testframework.DBStatement;
import com.microsoft.sqlserver.testframework.DBTable;
import com.microsoft.sqlserver.testframework.vectorJsonTest;
import com.microsoft.sqlserver.testframework.sqlType.SqlType;

import microsoft.sql.Vector;
Expand Down Expand Up @@ -525,7 +525,7 @@ public void testBulkCopyTabDelimitedWithQuotes() throws Exception {
* It verifies that the data is copied correctly by comparing the values in the table with the expected values.
*/
@Test
@AzureDB
@vectorJsonTest
@DisplayName("Test Bulk Copy with JSON Data")
@Tag(Constants.JSONTest)
public void testBulkCopyWithJson() throws Exception {
Expand Down Expand Up @@ -685,7 +685,7 @@ public void testBulkCopyWithComputedColumnNotAsLastColumn() throws SQLException
* BulkCopyCSVTestInputWithVector.csv file
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.vectorTest)
public void testBulkCopyVectorFromCSV() throws SQLException {
String dstTable = AbstractSQLGenerator.escapeIdentifier(RandomUtil.getIdentifier("dstTableBulkCopyVectorCsv"));
Expand Down Expand Up @@ -763,7 +763,7 @@ public void testBulkCopyVectorFromCSV() throws SQLException {
* BulkCopyCSVTestInputWithMultipleVectorColumn.csv file
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.vectorTest)
public void testBulkCopyVectorFromCSVWithMultipleColumns() throws SQLException {
String dstTable = AbstractSQLGenerator.escapeIdentifier(RandomUtil.getIdentifier("dstTableVectorCsvMulti"));
Expand Down Expand Up @@ -831,7 +831,7 @@ public void testBulkCopyVectorFromCSVWithMultipleColumns() throws SQLException {
* BulkCopyCSVTestWithMultipleVectorColumnWithPipeDelimiter.csv file
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.vectorTest)
public void testBulkCopyVectorFromCSVWithMultipleColumnsWithPipeDelimiter() throws SQLException {
String dstTable = AbstractSQLGenerator.escapeIdentifier(RandomUtil.getIdentifier("dstTableBulkCopyVectorCsvMultiPipe"));
Expand Down Expand Up @@ -899,7 +899,7 @@ public void testBulkCopyVectorFromCSVWithMultipleColumnsWithPipeDelimiter() thro
* metadata.
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.vectorTest)
public void testBulkCopyVectorFromCSVWithIncorrectDimension() throws SQLException {
String dstTable = AbstractSQLGenerator.escapeIdentifier(RandomUtil.getIdentifier("dstTableBulkCopyVectorCsvBadDim"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
import com.microsoft.sqlserver.jdbc.TestUtils;
import com.microsoft.sqlserver.testframework.AbstractSQLGenerator;
import com.microsoft.sqlserver.testframework.AbstractTest;
import com.microsoft.sqlserver.testframework.AzureDB;
import com.microsoft.sqlserver.testframework.Constants;
import com.microsoft.sqlserver.testframework.DBConnection;
import com.microsoft.sqlserver.testframework.DBStatement;
import com.microsoft.sqlserver.testframework.DBTable;
import com.microsoft.sqlserver.testframework.vectorJsonTest;
import com.microsoft.sqlserver.testframework.sqlType.SqlType;

import microsoft.sql.Vector;
Expand Down Expand Up @@ -162,7 +162,7 @@ public void testBulkCopyDateTimePrecision() throws SQLException {
* Test bulk copy with a single Vector row.
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.vectorTest)
public void testBulkCopyVector() throws SQLException {
String dstTable = TestUtils
Expand Down Expand Up @@ -201,7 +201,7 @@ public void testBulkCopyVector() throws SQLException {
* Test bulk copy with a single JSON row.
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.JSONTest)
public void testBulkCopyJSON() throws SQLException {
String dstTable = TestUtils
Expand Down Expand Up @@ -236,7 +236,7 @@ public void testBulkCopyJSON() throws SQLException {
* Test bulk copy with empty JSON document
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.JSONTest)
public void testBulkCopyWithEmptyJsonDocument() throws SQLException {
String dstTable = TestUtils
Expand Down Expand Up @@ -276,7 +276,7 @@ public void testBulkCopyWithEmptyJsonDocument() throws SQLException {
* and compared using getString(columnIndex)
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.JSONTest)
public void testBulkCopyMultipleJsonRowsWithDifferentStructures() throws SQLException {
String dstTable = TestUtils
Expand Down Expand Up @@ -319,7 +319,7 @@ public void testBulkCopyMultipleJsonRowsWithDifferentStructures() throws SQLExce
* Test bulk copy with multiple JSON rows.
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.JSONTest)
public void testBulkCopyMultipleJsonRows() throws SQLException {
String dstTable = TestUtils
Expand Down Expand Up @@ -362,7 +362,7 @@ public void testBulkCopyMultipleJsonRows() throws SQLException {
* Test bulk copy with multiple JSON rows and columns.
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.JSONTest)
public void testBulkCopyMultipleJsonRowsAndColumns() throws SQLException {
String dstTable = TestUtils
Expand Down Expand Up @@ -405,7 +405,7 @@ public void testBulkCopyMultipleJsonRowsAndColumns() throws SQLException {
* Test bulk copy with sendStringParametersAsUnicode set to true and false for JSON column.
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.JSONTest)
public void testBulkCopyWithSendStringParametersAsUnicode() throws SQLException {
// Unicode scenario
Expand Down Expand Up @@ -465,7 +465,7 @@ public void testBulkCopyWithSendStringParametersAsUnicode() throws SQLException
* Test bulk copy with nested JSON documents.
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.JSONTest)
public void testBulkCopyNestedJsonRows() throws SQLException {
String dstTable = TestUtils
Expand Down Expand Up @@ -508,7 +508,7 @@ public void testBulkCopyNestedJsonRows() throws SQLException {
* Test bulk copy with various data types in JSON.
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.JSONTest)
public void testBulkCopyWithVariousDataTypes() throws SQLException {
String dstTable = TestUtils
Expand Down Expand Up @@ -547,7 +547,7 @@ public void testBulkCopyWithVariousDataTypes() throws SQLException {
* Test bulk copy with count verification.
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.JSONTest)
public void testBulkCopyWithCountVerification() throws SQLException {
String dstTable = TestUtils
Expand Down Expand Up @@ -597,7 +597,7 @@ public void testBulkCopyWithCountVerification() throws SQLException {
* to destination table with VECTOR column.
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.vectorTest)
public void testBulkCopyTableToTableJsonToVector() throws Exception {
String srcTable = TestUtils.escapeSingleQuotes(
Expand Down Expand Up @@ -669,7 +669,7 @@ private static Object[] parseJsonArrayToFloatArray(String json) {
* Test bulk copy with null Vector data.
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.vectorTest)
public void testBulkCopyVectorNull() throws SQLException {
String dstTable = TestUtils
Expand Down Expand Up @@ -715,7 +715,7 @@ public void testBulkCopyVectorNull() throws SQLException {
* incompatible with vector".
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.vectorTest)
public void testBulkCopyVectorUsingBulkCopySourceAsVarBinary() {
String varbinaryTable = TestUtils
Expand Down Expand Up @@ -777,7 +777,7 @@ public void testBulkCopyVectorUsingBulkCopySourceAsVarBinary() {
* incompatible with varbinary(max)".
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.vectorTest)
public void testBulkCopyVectorUsingBulkCopyDestinationAsVarBinary() {
String vectorTable = TestUtils.escapeSingleQuotes(AbstractSQLGenerator.escapeIdentifier("testVectorTable"));
Expand Down Expand Up @@ -845,7 +845,7 @@ public void testBulkCopyVectorUsingBulkCopyDestinationAsVarBinary() {
* The operation should succeed, and the data should be validated.
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.vectorTest)
public void testBulkCopyVectorUsingBulkCopySourceAsVarchar() {
String varcharTable = TestUtils.escapeSingleQuotes(AbstractSQLGenerator.escapeIdentifier("testVarcharTable"));
Expand Down Expand Up @@ -913,7 +913,7 @@ public void testBulkCopyVectorUsingBulkCopySourceAsVarchar() {
* The operation should succeed, and the data should be validated.
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.vectorTest)
public void testBulkCopyVectorUsingBulkCopyDestinationAsVarchar() {
String vectorTable = TestUtils.escapeSingleQuotes(AbstractSQLGenerator.escapeIdentifier("testVectorTable"));
Expand Down Expand Up @@ -984,7 +984,7 @@ public void testBulkCopyVectorUsingBulkCopyDestinationAsVarchar() {
* The operation should fail with an error: "The vector dimensions 3 and 4 do not match."
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.vectorTest)
public void testBulkCopyVectorWithMismatchedDimensions() {
String srcTable = TestUtils.escapeSingleQuotes(AbstractSQLGenerator.escapeIdentifier("testSrcTable"));
Expand Down Expand Up @@ -1043,7 +1043,7 @@ public void testBulkCopyVectorWithMismatchedDimensions() {
* Test bulk copy with a large number of records to check performance.
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.vectorTest)
public void testBulkCopyPerformance() throws SQLException {
String tableName = AbstractSQLGenerator.escapeIdentifier("srcTable");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
import com.microsoft.sqlserver.jdbc.TestUtils;
import com.microsoft.sqlserver.testframework.AbstractSQLGenerator;
import com.microsoft.sqlserver.testframework.AbstractTest;
import com.microsoft.sqlserver.testframework.AzureDB;
import com.microsoft.sqlserver.testframework.Constants;
import com.microsoft.sqlserver.testframework.PrepUtil;
import com.microsoft.sqlserver.testframework.vectorJsonTest;


/**
Expand Down Expand Up @@ -670,7 +670,7 @@ public void testTimestampStringConversion() throws SQLException {
* @throws SQLException
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.JSONTest)
public void testJSONColumnInTableWithSetObject() throws SQLException {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
import com.microsoft.sqlserver.jdbc.TestUtils;
import com.microsoft.sqlserver.testframework.AbstractSQLGenerator;
import com.microsoft.sqlserver.testframework.AbstractTest;
import com.microsoft.sqlserver.testframework.AzureDB;
import com.microsoft.sqlserver.testframework.Constants;
import com.microsoft.sqlserver.testframework.vectorJsonTest;


/**
Expand Down Expand Up @@ -1092,7 +1092,7 @@ public void testGetSchemasWithAndWithoutCatalog() throws SQLException {
* @throws SQLException
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.vectorTest)
public void testVectorMetaData() throws SQLException {
String vectorTableName = RandomUtil.getIdentifier("vectorTable");
Expand Down Expand Up @@ -1160,7 +1160,7 @@ public void testVectorMetaData() throws SQLException {
* @throws SQLException
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.JSONTest)
public void testJSONMetaData() throws SQLException {
String jsonTableName = RandomUtil.getIdentifier("try_SQLJSON_Table");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
import com.microsoft.sqlserver.jdbc.TestUtils;
import com.microsoft.sqlserver.testframework.AbstractSQLGenerator;
import com.microsoft.sqlserver.testframework.AbstractTest;
import com.microsoft.sqlserver.testframework.AzureDB;
import com.microsoft.sqlserver.testframework.Constants;
import com.microsoft.sqlserver.testframework.vectorJsonTest;

@RunWith(JUnitPlatform.class)
@DisplayName("Test Json Functions")
@AzureDB
@vectorJsonTest
@Tag(Constants.JSONTest)
public class JSONFunctionTest extends AbstractTest {

Expand Down
Loading
Loading