@@ -65,7 +65,7 @@ public static void initializeServiceNowSourceConfig() {
6565 @ Before (order = 2 , value = "@SN_PRODUCT_CATALOG_ITEM" )
6666 public static void createRecordInProductCatalogItemTable () throws IOException , ServiceNowAPIException {
6767 BeforeActions .scenario .write ("Create new record in Product Catalog Item table" );
68- ServiceNowTableAPIClientImpl tableAPIClient = new ServiceNowTableAPIClientImpl (config .getConnection ());
68+ ServiceNowTableAPIClientImpl tableAPIClient = new ServiceNowTableAPIClientImpl (config .getConnection (), true );
6969 String uniqueId = "TestProductCatalogItem" + RandomStringUtils .randomAlphanumeric (10 );
7070 String recordDetails = "{'name':'" + uniqueId + "','price':'2500'}" ;
7171 StringEntity entity = new StringEntity (recordDetails );
@@ -76,7 +76,7 @@ public static void createRecordInProductCatalogItemTable() throws IOException, S
7676 public static void createRecordInReceivingSlipLineTable ()
7777 throws IOException , ServiceNowAPIException {
7878 BeforeActions .scenario .write ("Create new record in Receiving Slip Line table" );
79- ServiceNowTableAPIClientImpl tableAPIClient = new ServiceNowTableAPIClientImpl (config .getConnection ());
79+ ServiceNowTableAPIClientImpl tableAPIClient = new ServiceNowTableAPIClientImpl (config .getConnection (), true );
8080 String uniqueId = "TestReceivingSlipLine" + RandomStringUtils .randomAlphanumeric (10 );
8181 String recordDetails = "{'number':'" + uniqueId + "'}" ;
8282 StringEntity entity = new StringEntity (recordDetails );
@@ -119,7 +119,7 @@ public static void deleteRecord() throws ServiceNowAPIException, IOException {
119119 public static void updateRecordInAgentAssistRecommendationTable ()
120120 throws IOException , ServiceNowAPIException {
121121 BeforeActions .scenario .write ("Create new record in Agent Assist Recommendation table" );
122- ServiceNowTableAPIClientImpl tableAPIClient = new ServiceNowTableAPIClientImpl (config .getConnection ());
122+ ServiceNowTableAPIClientImpl tableAPIClient = new ServiceNowTableAPIClientImpl (config .getConnection (), true );
123123 String uniqueId = "TestAgentAssist" + RandomStringUtils .randomAlphanumeric (10 );
124124 String recordDetails = "{'active':'false','name':'" + uniqueId + "'}" ;
125125 StringEntity entity = new StringEntity (recordDetails );
@@ -130,7 +130,7 @@ public static void updateRecordInAgentAssistRecommendationTable()
130130 public static void updateRecordInAgentVendorCatalogItem ()
131131 throws IOException , ServiceNowAPIException {
132132 BeforeActions .scenario .write ("Create new record in Vendor Catalog Item table" );
133- ServiceNowTableAPIClientImpl tableAPIClient = new ServiceNowTableAPIClientImpl (config .getConnection ());
133+ ServiceNowTableAPIClientImpl tableAPIClient = new ServiceNowTableAPIClientImpl (config .getConnection (), true );
134134 String uniqueId = "TestVendorCatalog" + RandomStringUtils .randomAlphanumeric (10 );
135135 String recordDetails = "{'out_of_stock':'false','product_id':'" + uniqueId + "'}" ;
136136 StringEntity entity = new StringEntity (recordDetails );
@@ -140,7 +140,7 @@ public static void updateRecordInAgentVendorCatalogItem()
140140 @ Before (order = 2 , value = "@SN_UPDATE_SERVICE_OFFERING" )
141141 public static void updateRecordInServiceOffering () throws IOException , ServiceNowAPIException {
142142 BeforeActions .scenario .write ("Create new record in Service Offering table" );
143- ServiceNowTableAPIClientImpl tableAPIClient = new ServiceNowTableAPIClientImpl (config .getConnection ());
143+ ServiceNowTableAPIClientImpl tableAPIClient = new ServiceNowTableAPIClientImpl (config .getConnection (), true );
144144 String uniqueId = "TestServiceOffering" + RandomStringUtils .randomAlphanumeric (10 );
145145 String recordDetails = "{'purchase_date':'2022-05-28','end_date':'2022-06-05 15:00:00'," +
146146 " 'start_date':'2022-05-25 15:00:00','number':'" + uniqueId + "'}" ;
0 commit comments