Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
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;

import microsoft.sql.Vector;
import microsoft.sql.Vector.VectorDimensionType;

@RunWith(JUnitPlatform.class)
@DisplayName("Test Vector Data Type")
@AzureDB
@vectorJsonTest
@Tag(Constants.vectorTest)
public class VectorTest extends AbstractTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,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;

import microsoft.sql.DateTimeOffset;
import microsoft.sql.Vector;
Expand Down Expand Up @@ -822,7 +822,7 @@ public void testComputedCols() throws Exception {
* Test inserting complex JSON data using prepared statement with bulk copy enabled.
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.JSONTest)
public void testInsertJsonWithBulkCopy() throws Exception {
String tableName = RandomUtil.getIdentifier("BulkCopyComplexJsonTest");
Expand Down Expand Up @@ -873,7 +873,7 @@ public void testInsertJsonWithBulkCopy() throws Exception {
* Test select, update, create, and delete operations on JSON data and verify at each step.
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.JSONTest)
public void testCRUDOperationsWithJson() throws Exception {
String tableName = RandomUtil.getIdentifier("CRUDJsonTest");
Expand Down Expand Up @@ -1272,7 +1272,7 @@ public void testBulkInsertWithNullDataForAllTemporalTypesAndMoney() throws Excep
* Test inserting vector data using prepared statement with bulk copy enabled.
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.vectorTest)
public void testInsertVectorWithBulkCopy() throws Exception {
String tableName = RandomUtil.getIdentifier("BulkCopyVectorTest");
Expand Down Expand Up @@ -1311,7 +1311,7 @@ public void testInsertVectorWithBulkCopy() throws Exception {
* Test inserting null vector data using prepared statement with bulk copy enabled.
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.vectorTest)
public void testInsertNullVectorWithBulkCopy() throws Exception {
String tableName = RandomUtil.getIdentifier("BulkCopyVectorTest");
Expand Down Expand Up @@ -1351,7 +1351,7 @@ public void testInsertNullVectorWithBulkCopy() throws Exception {
* Test inserting vector data using prepared statement with bulk copy enabled for performance.
*/
@Test
@AzureDB
@vectorJsonTest
@Tag(Constants.vectorTest)
public void testInsertWithBulkCopyPerformance() throws SQLException {
String tableName = AbstractSQLGenerator.escapeIdentifier("BulkCopyVectorPerformanceTest");
Expand Down
Loading
Loading