|
| 1 | +package com.scalar.db.storage.objectstorage; |
| 2 | + |
| 3 | +import com.scalar.db.config.DatabaseConfig; |
| 4 | +import com.scalar.db.transaction.consensuscommit.ConsensusCommitAdminIntegrationTestBase; |
| 5 | +import com.scalar.db.transaction.consensuscommit.ConsensusCommitConfig; |
| 6 | +import com.scalar.db.transaction.consensuscommit.Coordinator; |
| 7 | +import java.util.Properties; |
| 8 | +import org.junit.jupiter.api.Disabled; |
| 9 | + |
| 10 | +public class ConsensusCommitAdminIntegrationTestWithObjectStorage |
| 11 | + extends ConsensusCommitAdminIntegrationTestBase { |
| 12 | + |
| 13 | + @Override |
| 14 | + protected Properties getProps(String testName) { |
| 15 | + return ObjectStorageEnv.getProperties(testName); |
| 16 | + } |
| 17 | + |
| 18 | + @Override |
| 19 | + protected String getSystemNamespaceName(Properties properties) { |
| 20 | + return ObjectStorageUtils.getObjectStorageConfig(new DatabaseConfig(properties)) |
| 21 | + .getMetadataNamespace(); |
| 22 | + } |
| 23 | + |
| 24 | + @Override |
| 25 | + protected String getCoordinatorNamespaceName(String testName) { |
| 26 | + return new ConsensusCommitConfig(new DatabaseConfig(getProperties(testName))) |
| 27 | + .getCoordinatorNamespace() |
| 28 | + .orElse(Coordinator.NAMESPACE); |
| 29 | + } |
| 30 | + |
| 31 | + @Override |
| 32 | + @Disabled("Temporarily disabled because it includes DML operations") |
| 33 | + public void truncateTable_ShouldTruncateProperly() {} |
| 34 | + |
| 35 | + @Override |
| 36 | + @Disabled("Object Storage does not support index-related operations") |
| 37 | + public void createIndex_ForAllDataTypesWithExistingData_ShouldCreateIndexesCorrectly() {} |
| 38 | + |
| 39 | + @Override |
| 40 | + @Disabled("Object Storage does not support index-related operations") |
| 41 | + public void createIndex_ForNonExistingTable_ShouldThrowIllegalArgumentException() {} |
| 42 | + |
| 43 | + @Override |
| 44 | + @Disabled("Object Storage does not support index-related operations") |
| 45 | + public void createIndex_ForNonExistingColumn_ShouldThrowIllegalArgumentException() {} |
| 46 | + |
| 47 | + @Override |
| 48 | + @Disabled("Object Storage does not support index-related operations") |
| 49 | + public void createIndex_ForAlreadyExistingIndex_ShouldThrowIllegalArgumentException() {} |
| 50 | + |
| 51 | + @Override |
| 52 | + @Disabled("Object Storage does not support index-related operations") |
| 53 | + public void createIndex_IfNotExists_ForAlreadyExistingIndex_ShouldNotThrowAnyException() {} |
| 54 | + |
| 55 | + @Override |
| 56 | + @Disabled("Object Storage does not support index-related operations") |
| 57 | + public void dropIndex_ForAllDataTypesWithExistingData_ShouldDropIndexCorrectly() {} |
| 58 | + |
| 59 | + @Override |
| 60 | + @Disabled("Object Storage does not support index-related operations") |
| 61 | + public void dropIndex_ForNonExistingTable_ShouldThrowIllegalArgumentException() {} |
| 62 | + |
| 63 | + @Override |
| 64 | + @Disabled("Object Storage does not support index-related operations") |
| 65 | + public void dropIndex_ForNonExistingIndex_ShouldThrowIllegalArgumentException() {} |
| 66 | + |
| 67 | + @Override |
| 68 | + @Disabled("Object Storage does not support index-related operations") |
| 69 | + public void dropIndex_IfExists_ForNonExistingIndex_ShouldNotThrowAnyException() {} |
| 70 | + |
| 71 | + @Override |
| 72 | + @Disabled("Object Storage does not support dropping columns") |
| 73 | + public void dropColumnFromTable_DropColumnForEachExistingDataType_ShouldDropColumnsCorrectly() {} |
| 74 | + |
| 75 | + @Override |
| 76 | + @Disabled("Object Storage does not support dropping columns") |
| 77 | + public void dropColumnFromTable_ForNonExistingTable_ShouldThrowIllegalArgumentException() {} |
| 78 | + |
| 79 | + @Override |
| 80 | + @Disabled("Object Storage does not support dropping columns") |
| 81 | + public void dropColumnFromTable_ForNonExistingColumn_ShouldThrowIllegalArgumentException() {} |
| 82 | + |
| 83 | + @Override |
| 84 | + @Disabled("Object Storage does not support dropping columns") |
| 85 | + public void dropColumnFromTable_ForPrimaryKeyColumn_ShouldThrowIllegalArgumentException() {} |
| 86 | + |
| 87 | + @Override |
| 88 | + @Disabled("Object Storage does not support dropping columns") |
| 89 | + public void dropColumnFromTable_ForIndexedColumn_ShouldDropColumnAndIndexCorrectly() {} |
| 90 | + |
| 91 | + @Override |
| 92 | + @Disabled("Object Storage does not support renaming columns") |
| 93 | + public void renameColumn_ShouldRenameColumnCorrectly() {} |
| 94 | + |
| 95 | + @Override |
| 96 | + @Disabled("Object Storage does not support renaming columns") |
| 97 | + public void renameColumn_ForNonExistingTable_ShouldThrowIllegalArgumentException() {} |
| 98 | + |
| 99 | + @Override |
| 100 | + @Disabled("Object Storage does not support renaming columns") |
| 101 | + public void renameColumn_ForNonExistingColumn_ShouldThrowIllegalArgumentException() {} |
| 102 | + |
| 103 | + @Override |
| 104 | + @Disabled("Object Storage does not support renaming columns") |
| 105 | + public void renameColumn_ForPrimaryKeyColumn_ShouldRenameColumnCorrectly() {} |
| 106 | + |
| 107 | + @Override |
| 108 | + @Disabled("Object Storage does not support renaming columns") |
| 109 | + public void renameColumn_ForIndexKeyColumn_ShouldRenameColumnAndIndexCorrectly() {} |
| 110 | + |
| 111 | + @Override |
| 112 | + @Disabled("Object Storage does not support altering column types") |
| 113 | + public void |
| 114 | + alterColumnType_AlterColumnTypeFromEachExistingDataTypeToText_ShouldAlterColumnTypesCorrectly() {} |
| 115 | + |
| 116 | + @Override |
| 117 | + @Disabled("Object Storage does not support altering column types") |
| 118 | + public void alterColumnType_WideningConversion_ShouldAlterColumnTypesCorrectly() {} |
| 119 | + |
| 120 | + @Override |
| 121 | + @Disabled("Object Storage does not support altering column types") |
| 122 | + public void alterColumnType_ForPrimaryKeyOrIndexKeyColumn_ShouldThrowIllegalArgumentException() {} |
| 123 | + |
| 124 | + @Override |
| 125 | + @Disabled("Object Storage does not support renaming tables") |
| 126 | + public void renameTable_ForExistingTable_ShouldRenameTableCorrectly() {} |
| 127 | + |
| 128 | + @Override |
| 129 | + @Disabled("Object Storage does not support renaming tables") |
| 130 | + public void renameTable_ForNonExistingTable_ShouldThrowIllegalArgumentException() {} |
| 131 | + |
| 132 | + @Override |
| 133 | + @Disabled("Object Storage does not support renaming tables") |
| 134 | + public void renameTable_IfNewTableNameAlreadyExists_ShouldThrowIllegalArgumentException() {} |
| 135 | + |
| 136 | + @Override |
| 137 | + @Disabled("Object Storage does not support renaming tables") |
| 138 | + public void renameTable_ForExistingTableWithIndexes_ShouldRenameTableAndIndexesCorrectly() {} |
| 139 | + |
| 140 | + @Override |
| 141 | + @Disabled("Object Storage does not support renaming tables") |
| 142 | + public void renameTable_IfOnlyOneTableExists_ShouldRenameTableCorrectly() {} |
| 143 | +} |
0 commit comments