Skip to content

Commit dcd6d54

Browse files
authored
Merge branch 'main' into dependabot/gradle/awssdk-2.42.35
2 parents 066a4fb + 8e5dfba commit dcd6d54

838 files changed

Lines changed: 155665 additions & 90 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

integration-tests/src/test/java/com/atlan/java/sdk/ADLSAssetTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ void deleteObject() throws AtlanException {
227227
AssetMutationResponse response = Asset.delete(client, object.getGuid()).block();
228228
assertNotNull(response);
229229
assertTrue(response.getCreatedAssets().isEmpty());
230-
assertTrue(response.getUpdatedAssets().isEmpty());
231230
assertEquals(response.getDeletedAssets().size(), 1);
232231
Asset one = response.getDeletedAssets().get(0);
233232
assertTrue(one instanceof ADLSObject);
@@ -264,7 +263,6 @@ void purgeObject() throws AtlanException {
264263
AssetMutationResponse response = Asset.purge(client, object.getGuid()).block();
265264
assertNotNull(response);
266265
assertTrue(response.getCreatedAssets().isEmpty());
267-
assertTrue(response.getUpdatedAssets().isEmpty());
268266
assertEquals(response.getDeletedAssets().size(), 1);
269267
Asset one = response.getDeletedAssets().get(0);
270268
assertTrue(one instanceof ADLSObject);

integration-tests/src/test/java/com/atlan/java/sdk/APIAssetTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ void deletePath() throws AtlanException {
175175
AssetMutationResponse response = Asset.delete(client, path.getGuid()).block();
176176
assertNotNull(response);
177177
assertTrue(response.getCreatedAssets().isEmpty());
178-
assertTrue(response.getUpdatedAssets().isEmpty());
179178
assertEquals(response.getDeletedAssets().size(), 1);
180179
Asset one = response.getDeletedAssets().get(0);
181180
assertTrue(one instanceof APIPath);
@@ -212,7 +211,6 @@ void purgePath() throws AtlanException {
212211
AssetMutationResponse response = Asset.purge(client, path.getGuid()).block();
213212
assertNotNull(response);
214213
assertTrue(response.getCreatedAssets().isEmpty());
215-
assertTrue(response.getUpdatedAssets().isEmpty());
216214
assertEquals(response.getDeletedAssets().size(), 1);
217215
Asset one = response.getDeletedAssets().get(0);
218216
assertTrue(one instanceof APIPath);

integration-tests/src/test/java/com/atlan/java/sdk/AirflowAssetTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ void deleteTask() throws AtlanException {
195195
AssetMutationResponse response = Asset.delete(client, task.getGuid()).block();
196196
assertNotNull(response);
197197
assertTrue(response.getCreatedAssets().isEmpty());
198-
assertTrue(response.getUpdatedAssets().isEmpty());
199198
assertEquals(response.getDeletedAssets().size(), 1);
200199
Asset one = response.getDeletedAssets().get(0);
201200
assertTrue(one instanceof AirflowTask);
@@ -232,7 +231,6 @@ void purgeTask() throws AtlanException {
232231
AssetMutationResponse response = Asset.purge(client, task.getGuid()).block();
233232
assertNotNull(response);
234233
assertTrue(response.getCreatedAssets().isEmpty());
235-
assertTrue(response.getUpdatedAssets().isEmpty());
236234
assertEquals(response.getDeletedAssets().size(), 1);
237235
Asset one = response.getDeletedAssets().get(0);
238236
assertTrue(one instanceof AirflowTask);

integration-tests/src/test/java/com/atlan/java/sdk/AnaplanAssetTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,6 @@ void deleteList() throws AtlanException {
491491
AssetMutationResponse response = Asset.delete(client, list.getGuid()).block();
492492
assertNotNull(response);
493493
assertTrue(response.getCreatedAssets().isEmpty());
494-
assertTrue(response.getUpdatedAssets().isEmpty());
495494
assertEquals(response.getDeletedAssets().size(), 1);
496495
Asset one = response.getDeletedAssets().get(0);
497496
assertTrue(one instanceof AnaplanList);
@@ -528,7 +527,6 @@ void purgeList() throws AtlanException {
528527
AssetMutationResponse response = Asset.purge(client, list.getGuid()).block();
529528
assertNotNull(response);
530529
assertTrue(response.getCreatedAssets().isEmpty());
531-
assertTrue(response.getUpdatedAssets().isEmpty());
532530
assertEquals(response.getDeletedAssets().size(), 1);
533531
Asset one = response.getDeletedAssets().get(0);
534532
assertTrue(one instanceof AnaplanList);

integration-tests/src/test/java/com/atlan/java/sdk/AppAssetTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ void deleteApplicationField() throws AtlanException {
192192
Asset.delete(client, applicationField.getGuid()).block();
193193
assertNotNull(response);
194194
assertTrue(response.getCreatedAssets().isEmpty());
195-
assertTrue(response.getUpdatedAssets().isEmpty());
196195
assertEquals(response.getDeletedAssets().size(), 1);
197196
Asset one = response.getDeletedAssets().get(0);
198197
assertTrue(one instanceof ApplicationField);
@@ -230,7 +229,6 @@ void purgeApplicationField() throws AtlanException {
230229
Asset.purge(client, applicationField.getGuid()).block();
231230
assertNotNull(response);
232231
assertTrue(response.getCreatedAssets().isEmpty());
233-
assertTrue(response.getUpdatedAssets().isEmpty());
234232
assertEquals(response.getDeletedAssets().size(), 1);
235233
Asset one = response.getDeletedAssets().get(0);
236234
assertTrue(one instanceof ApplicationField);

integration-tests/src/test/java/com/atlan/java/sdk/AzureEventHubTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ void deleteGroup() throws AtlanException {
227227
Asset.delete(client, consumerGroup.getGuid()).block();
228228
assertNotNull(response);
229229
assertTrue(response.getCreatedAssets().isEmpty());
230-
assertTrue(response.getUpdatedAssets().isEmpty());
231230
assertEquals(response.getDeletedAssets().size(), 1);
232231
Asset one = response.getDeletedAssets().get(0);
233232
assertTrue(one instanceof AzureEventHubConsumerGroup);
@@ -265,7 +264,6 @@ void purgeGroup() throws AtlanException {
265264
Asset.purge(client, consumerGroup.getGuid()).block();
266265
assertNotNull(response);
267266
assertTrue(response.getCreatedAssets().isEmpty());
268-
assertTrue(response.getUpdatedAssets().isEmpty());
269267
assertEquals(response.getDeletedAssets().size(), 1);
270268
Asset one = response.getDeletedAssets().get(0);
271269
assertTrue(one instanceof AzureEventHubConsumerGroup);

integration-tests/src/test/java/com/atlan/java/sdk/CustomAssetTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ void deleteChild2() throws AtlanException {
217217
AssetMutationResponse response = Asset.delete(client, child2.getGuid()).block();
218218
assertNotNull(response);
219219
assertTrue(response.getCreatedAssets().isEmpty());
220-
assertTrue(response.getUpdatedAssets().isEmpty());
221220
assertEquals(response.getDeletedAssets().size(), 1);
222221
Asset one = response.getDeletedAssets().get(0);
223222
assertTrue(one instanceof CustomEntity);
@@ -254,7 +253,6 @@ void purgeEntity() throws AtlanException {
254253
AssetMutationResponse response = Asset.purge(client, child2.getGuid()).block();
255254
assertNotNull(response);
256255
assertTrue(response.getCreatedAssets().isEmpty());
257-
assertTrue(response.getUpdatedAssets().isEmpty());
258256
assertEquals(response.getDeletedAssets().size(), 1);
259257
Asset one = response.getDeletedAssets().get(0);
260258
assertTrue(one instanceof CustomEntity);

integration-tests/src/test/java/com/atlan/java/sdk/CustomMetadataTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ void createBadges() throws AtlanException {
347347
assertTrue(response.getCreatedAssets().get(0) instanceof Badge);
348348
badge1 = (Badge) response.getCreatedAssets().get(0);
349349
assertNotNull(badge1.getGuid());
350+
badge1 = Badge.get(client, badge1.getGuid(), true);
350351
List<BadgeCondition> badgeConditions = badge1.getBadgeConditions();
351352
assertEquals(badgeConditions.size(), 3);
352353
// Badges may come back in a different order in the response...
@@ -382,6 +383,7 @@ void createBadges() throws AtlanException {
382383
assertTrue(response.getCreatedAssets().get(0) instanceof Badge);
383384
badge2 = (Badge) response.getCreatedAssets().get(0);
384385
assertNotNull(badge2.getGuid());
386+
badge2 = Badge.get(client, badge2.getGuid(), true);
385387
badgeConditions = badge2.getBadgeConditions();
386388
assertEquals(badgeConditions.size(), 4);
387389
for (BadgeCondition condition : badgeConditions) {
@@ -402,6 +404,7 @@ void createBadges() throws AtlanException {
402404
assertTrue(response.getCreatedAssets().get(0) instanceof Badge);
403405
badge3 = (Badge) response.getCreatedAssets().get(0);
404406
assertNotNull(badge3.getGuid());
407+
badge3 = Badge.get(client, badge3.getGuid(), true);
405408
badgeConditions = badge3.getBadgeConditions();
406409
assertEquals(badgeConditions.size(), 1);
407410
assertEquals(badgeConditions.get(0).getBadgeConditionOperator(), BadgeComparisonOperator.EQ);
@@ -419,6 +422,7 @@ void createBadges() throws AtlanException {
419422
assertTrue(response.getCreatedAssets().get(0) instanceof Badge);
420423
badge4 = (Badge) response.getCreatedAssets().get(0);
421424
assertNotNull(badge4.getGuid());
425+
badge4 = Badge.get(client, badge4.getGuid(), true);
422426
badgeConditions = badge4.getBadgeConditions();
423427
assertEquals(badgeConditions.size(), 2);
424428
for (BadgeCondition condition : badgeConditions) {
@@ -1387,7 +1391,6 @@ private void deleteAndValidateAssets(AtlanClient client, List<String> guids) thr
13871391
AssetMutationResponse response = Asset.delete(client, guid);
13881392
assertNotNull(response);
13891393
assertEquals(response.getCreatedAssets().size(), 0);
1390-
assertEquals(response.getUpdatedAssets().size(), 0);
13911394
List<Asset> entities = response.getDeletedAssets();
13921395
assertNotNull(entities);
13931396
}

integration-tests/src/test/java/com/atlan/java/sdk/DataStudioAssetTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ void deleteSource() throws AtlanException {
179179
AssetMutationResponse response = Asset.delete(client, source.getGuid()).block();
180180
assertNotNull(response);
181181
assertTrue(response.getCreatedAssets().isEmpty());
182-
assertTrue(response.getUpdatedAssets().isEmpty());
183182
assertEquals(response.getDeletedAssets().size(), 1);
184183
Asset one = response.getDeletedAssets().get(0);
185184
assertTrue(one instanceof DataStudioAsset);
@@ -216,7 +215,6 @@ void purgeSource() throws AtlanException {
216215
AssetMutationResponse response = Asset.purge(client, source.getGuid()).block();
217216
assertNotNull(response);
218217
assertTrue(response.getCreatedAssets().isEmpty());
219-
assertTrue(response.getUpdatedAssets().isEmpty());
220218
assertEquals(response.getDeletedAssets().size(), 1);
221219
Asset one = response.getDeletedAssets().get(0);
222220
assertTrue(one instanceof DataStudioAsset);

integration-tests/src/test/java/com/atlan/java/sdk/DataverseAssetTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ void deleteAttribute() throws AtlanException {
175175
Asset.delete(client, attribute.getGuid()).block();
176176
assertNotNull(response);
177177
assertTrue(response.getCreatedAssets().isEmpty());
178-
assertTrue(response.getUpdatedAssets().isEmpty());
179178
assertEquals(response.getDeletedAssets().size(), 1);
180179
Asset one = response.getDeletedAssets().get(0);
181180
assertTrue(one instanceof DataverseAttribute);
@@ -213,7 +212,6 @@ void purgeAttribute() throws AtlanException {
213212
Asset.purge(client, attribute.getGuid()).block();
214213
assertNotNull(response);
215214
assertTrue(response.getCreatedAssets().isEmpty());
216-
assertTrue(response.getUpdatedAssets().isEmpty());
217215
assertEquals(response.getDeletedAssets().size(), 1);
218216
Asset one = response.getDeletedAssets().get(0);
219217
assertTrue(one instanceof DataverseAttribute);

0 commit comments

Comments
 (0)