Skip to content

Commit 12d41cb

Browse files
committed
Merge branch 'master' into add-auth-role-to-admin-interface
2 parents b5605af + af08d73 commit 12d41cb

File tree

96 files changed

+5093
-364
lines changed

Some content is hidden

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

96 files changed

+5093
-364
lines changed

.github/workflows/ci.yaml

Lines changed: 254 additions & 29 deletions
Large diffs are not rendered by default.

.github/workflows/permission-check.yaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545

4646
- name: Upload Gradle test reports
4747
if: always()
48-
uses: actions/upload-artifact@v4
48+
uses: actions/upload-artifact@v5
4949
with:
5050
name: cassandra_3.0_permission_integration_test_reports
5151
path: core/build/reports/tests/integrationTestCassandraPermission
@@ -84,7 +84,7 @@ jobs:
8484

8585
- name: Upload Gradle test reports
8686
if: always()
87-
uses: actions/upload-artifact@v4
87+
uses: actions/upload-artifact@v5
8888
with:
8989
name: cassandra_3.11_permission_integration_test_reports
9090
path: core/build/reports/tests/integrationTestCassandraPermission
@@ -110,7 +110,7 @@ jobs:
110110

111111
- name: Upload Gradle test reports
112112
if: always()
113-
uses: actions/upload-artifact@v4
113+
uses: actions/upload-artifact@v5
114114
with:
115115
name: dynamo_permission_integration_test_reports
116116
path: core/build/reports/tests/integrationTestDynamoPermission
@@ -139,7 +139,7 @@ jobs:
139139

140140
- name: Upload Gradle test reports
141141
if: always()
142-
uses: actions/upload-artifact@v4
142+
uses: actions/upload-artifact@v5
143143
with:
144144
name: mysql_5.7_permission_integration_test_reports
145145
path: core/build/reports/tests/integrationTestJdbcPermission
@@ -168,7 +168,7 @@ jobs:
168168

169169
- name: Upload Gradle test reports
170170
if: always()
171-
uses: actions/upload-artifact@v4
171+
uses: actions/upload-artifact@v5
172172
with:
173173
name: mysql_8.0_permission_integration_test_reports
174174
path: core/build/reports/tests/integrationTestJdbcPermission
@@ -197,7 +197,7 @@ jobs:
197197

198198
- name: Upload Gradle test reports
199199
if: always()
200-
uses: actions/upload-artifact@v4
200+
uses: actions/upload-artifact@v5
201201
with:
202202
name: mysql_8.4_permission_integration_test_reports
203203
path: core/build/reports/tests/integrationTestJdbcPermission
@@ -232,7 +232,7 @@ jobs:
232232

233233
- name: Upload Gradle test reports
234234
if: always()
235-
uses: actions/upload-artifact@v4
235+
uses: actions/upload-artifact@v5
236236
with:
237237
name: postgresql_13_permission_integration_test_reports
238238
path: core/build/reports/tests/integrationTestJdbcPermission
@@ -267,7 +267,7 @@ jobs:
267267

268268
- name: Upload Gradle test reports
269269
if: always()
270-
uses: actions/upload-artifact@v4
270+
uses: actions/upload-artifact@v5
271271
with:
272272
name: postgresql_14_permission_integration_test_reports
273273
path: core/build/reports/tests/integrationTestJdbcPermission
@@ -302,7 +302,7 @@ jobs:
302302

303303
- name: Upload Gradle test reports
304304
if: always()
305-
uses: actions/upload-artifact@v4
305+
uses: actions/upload-artifact@v5
306306
with:
307307
name: postgresql_15_permission_integration_test_reports
308308
path: core/build/reports/tests/integrationTestJdbcPermission
@@ -337,7 +337,7 @@ jobs:
337337

338338
- name: Upload Gradle test reports
339339
if: always()
340-
uses: actions/upload-artifact@v4
340+
uses: actions/upload-artifact@v5
341341
with:
342342
name: postgresql_16_permission_integration_test_reports
343343
path: core/build/reports/tests/integrationTestJdbcPermission
@@ -372,7 +372,7 @@ jobs:
372372

373373
- name: Upload Gradle test reports
374374
if: always()
375-
uses: actions/upload-artifact@v4
375+
uses: actions/upload-artifact@v5
376376
with:
377377
name: postgresql_17_permission_integration_test_reports
378378
path: core/build/reports/tests/integrationTestJdbcPermission
@@ -407,7 +407,7 @@ jobs:
407407

408408
- name: Upload Gradle test reports
409409
if: always()
410-
uses: actions/upload-artifact@v4
410+
uses: actions/upload-artifact@v5
411411
with:
412412
name: oracle_19_permission_integration_test_reports
413413
path: core/build/reports/tests/integrationTestJdbcPermission
@@ -449,7 +449,7 @@ jobs:
449449

450450
- name: Upload Gradle test reports
451451
if: always()
452-
uses: actions/upload-artifact@v4
452+
uses: actions/upload-artifact@v5
453453
with:
454454
name: oracle_21_permission_integration_test_reports
455455
path: core/build/reports/tests/integrationTestJdbcPermission
@@ -508,7 +508,7 @@ jobs:
508508

509509
- name: Upload Gradle test reports
510510
if: always()
511-
uses: actions/upload-artifact@v4
511+
uses: actions/upload-artifact@v5
512512
with:
513513
name: oracle_23_permission_integration_test_reports
514514
path: core/build/reports/tests/integrationTestJdbcPermission
@@ -541,7 +541,7 @@ jobs:
541541

542542
- name: Upload Gradle test reports
543543
if: always()
544-
uses: actions/upload-artifact@v4
544+
uses: actions/upload-artifact@v5
545545
with:
546546
name: sqlserver_2017_permission_integration_test_reports
547547
path: core/build/reports/tests/integrationTestJdbcPermission
@@ -578,7 +578,7 @@ jobs:
578578

579579
- name: Upload Gradle test reports
580580
if: always()
581-
uses: actions/upload-artifact@v4
581+
uses: actions/upload-artifact@v5
582582
with:
583583
name: sqlserver_2019_permission_integration_test_reports
584584
path: core/build/reports/tests/integrationTestJdbcPermission
@@ -615,7 +615,7 @@ jobs:
615615

616616
- name: Upload Gradle test reports
617617
if: always()
618-
uses: actions/upload-artifact@v4
618+
uses: actions/upload-artifact@v5
619619
with:
620620
name: sqlserver_2022_permission_integration_test_reports
621621
path: core/build/reports/tests/integrationTestJdbcPermission
@@ -645,7 +645,7 @@ jobs:
645645

646646
- name: Upload Gradle test reports
647647
if: always()
648-
uses: actions/upload-artifact@v4
648+
uses: actions/upload-artifact@v5
649649
with:
650650
name: mariadb_10.11_permission_integration_test_reports
651651
path: core/build/reports/tests/integrationTestJdbcPermission
@@ -675,7 +675,7 @@ jobs:
675675

676676
- name: Upload Gradle test reports
677677
if: always()
678-
uses: actions/upload-artifact@v4
678+
uses: actions/upload-artifact@v5
679679
with:
680680
name: mariadb_11.4_permission_integration_test_reports
681681
path: core/build/reports/tests/integrationTestJdbcPermission
@@ -705,7 +705,7 @@ jobs:
705705

706706
- name: Upload Gradle test reports
707707
if: always()
708-
uses: actions/upload-artifact@v4
708+
uses: actions/upload-artifact@v5
709709
with:
710710
name: yugabytedb_2_permission_integration_test_reports
711711
path: core/build/reports/tests/integrationTestJdbcPermission
@@ -759,7 +759,7 @@ jobs:
759759

760760
- name: Upload Gradle test reports
761761
if: always()
762-
uses: actions/upload-artifact@v4
762+
uses: actions/upload-artifact@v5
763763
with:
764764
name: db2_11.5_permission_integration_test_reports
765765
path: core/build/reports/tests/integrationTestJdbcPermission
@@ -813,7 +813,7 @@ jobs:
813813

814814
- name: Upload Gradle test reports
815815
if: always()
816-
uses: actions/upload-artifact@v4
816+
uses: actions/upload-artifact@v5
817817
with:
818818
name: db2_12.1_permission_integration_test_reports
819819
path: core/build/reports/tests/integrationTestJdbcPermission

.github/workflows/release-snapshot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Upload JReleaser outputs
4848
if: always()
49-
uses: actions/upload-artifact@v4
49+
uses: actions/upload-artifact@v5
5050
with:
5151
name: jreleaser-release
5252
path: |

.github/workflows/upload-artifacts.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757

5858
- name: Upload JReleaser outputs
5959
if: always()
60-
uses: actions/upload-artifact@v4
60+
uses: actions/upload-artifact@v5
6161
with:
6262
name: jreleaser-release
6363
path: |

build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id "com.diffplug.spotless" version "6.13.0"
3-
id "org.jreleaser" version "1.20.0"
3+
id "org.jreleaser" version "1.21.0"
44
}
55

66
ext {
@@ -27,22 +27,22 @@ subprojects {
2727
guavaVersion = '32.1.3-jre'
2828
slf4jVersion = '1.7.36'
2929
cassandraDriverVersion = '3.11.5'
30-
azureCosmosVersion = '4.74.0'
30+
azureCosmosVersion = '4.75.0'
3131
jooqVersion = '3.14.16'
32-
awssdkVersion = '2.35.0'
32+
awssdkVersion = '2.37.3'
3333
commonsDbcp2Version = '2.13.0'
3434
mysqlDriverVersion = '8.4.0'
3535
postgresqlDriverVersion = '42.7.8'
36-
oracleDriverVersion = '23.9.0.25.07'
36+
oracleDriverVersion = '23.26.0.0.0'
3737
sqlserverDriverVersion = '12.8.2.jre8'
3838
sqliteDriverVersion = '3.50.3.0'
3939
yugabyteDriverVersion = '42.7.3-yb-4'
4040
db2DriverVersion = '12.1.2.0'
4141
mariadDbDriverVersion = '3.5.6'
42-
alloyDbJdbcConnectorVersion = '1.2.6'
42+
alloyDbJdbcConnectorVersion = '1.2.7'
4343
picocliVersion = '4.7.7'
4444
commonsTextVersion = '1.14.0'
45-
junitVersion = '5.14.0'
45+
junitVersion = '5.14.1'
4646
commonsLangVersion = '3.19.0'
4747
assertjVersion = '3.27.6'
4848
mockitoVersion = '4.11.0'

core/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ task integrationTestJdbc(type: Test) {
251251
options {
252252
systemProperties(System.getProperties().findAll{it.key.toString().startsWith("scalardb")})
253253
}
254+
maxHeapSize = "4g"
254255
}
255256

256257
task integrationTestMultiStorage(type: Test) {

core/src/integration-test/java/com/scalar/db/storage/cassandra/CassandraAdminTestUtils.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ public void corruptMetadata(String namespace, String table) {
5757
// Do nothing
5858
}
5959

60+
@Override
61+
public void deleteMetadata(String namespace, String table) throws Exception {
62+
// Do nothing
63+
}
64+
6065
@Override
6166
public void dropNamespace(String namespace) {
6267
String dropKeyspaceQuery =

core/src/integration-test/java/com/scalar/db/storage/cosmos/CosmosAdminTestUtils.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,15 @@ public void corruptMetadata(String namespace, String table) {
8686
container.upsertItem(corruptedMetadata);
8787
}
8888

89+
@Override
90+
public void deleteMetadata(String namespace, String table) {
91+
String fullTableName = getFullTableName(namespace, table);
92+
CosmosContainer container =
93+
client.getDatabase(metadataDatabase).getContainer(CosmosAdmin.TABLE_METADATA_CONTAINER);
94+
container.deleteItem(
95+
fullTableName, new PartitionKey(fullTableName), new CosmosItemRequestOptions());
96+
}
97+
8998
/**
9099
* Retrieve the stored procedure for the given table
91100
*

core/src/integration-test/java/com/scalar/db/storage/dynamo/DynamoAdminCaseSensitivityIntegrationTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ protected AdminTestUtils getAdminTestUtils(String testName) {
2929
return new DynamoAdminTestUtils(getProperties(testName));
3030
}
3131

32+
@Override
33+
@Disabled("DynamoDB does not have a concept of namespaces")
34+
public void
35+
dropNamespace_ForNamespaceWithNonScalarDBManagedTables_ShouldThrowIllegalArgumentException() {}
36+
3237
@Override
3338
@Disabled("DynamoDB does not support dropping columns")
3439
public void dropColumnFromTable_DropColumnForEachExistingDataType_ShouldDropColumnsCorrectly() {}

core/src/integration-test/java/com/scalar/db/storage/dynamo/DynamoAdminIntegrationTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ protected AdminTestUtils getAdminTestUtils(String testName) {
2828
return new DynamoAdminTestUtils(getProperties(testName));
2929
}
3030

31+
@Override
32+
@Disabled("DynamoDB does not have a concept of namespaces")
33+
public void
34+
dropNamespace_ForNamespaceWithNonScalarDBManagedTables_ShouldThrowIllegalArgumentException() {}
35+
3136
@Override
3237
@Disabled("DynamoDB does not support dropping columns")
3338
public void dropColumnFromTable_DropColumnForEachExistingDataType_ShouldDropColumnsCorrectly() {}

0 commit comments

Comments
 (0)