Skip to content

Commit

Permalink
Add getNamespacesNames() to DynamoAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Guilpain committed Sep 2, 2022
1 parent 038fa93 commit 02bd289
Show file tree
Hide file tree
Showing 10 changed files with 602 additions and 179 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import com.scalar.db.transaction.consensuscommit.ConsensusCommitAdminIntegrationTestBase;
import java.util.Map;
import java.util.Properties;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

public class ConsensusCommitAdminIntegrationTestWithDynamo
extends ConsensusCommitAdminIntegrationTestBase {
Expand All @@ -23,29 +21,4 @@ protected Map<String, String> getCreationOptions() {
protected boolean isIndexOnBooleanColumnSupported() {
return false;
}

@Disabled("Temporarily until admin.getNamespacesNames() is implemented")
@Test
@Override
public void createNamespace_ForNonExistingNamespace_ShouldCreateNamespaceProperly() {}

@Disabled("Temporarily until admin.getNamespacesNames() is implemented")
@Test
@Override
public void createNamespace_ForExistingNamespace_ShouldThrowExecutionException() {}

@Disabled("Temporarily until admin.getNamespacesNames() is implemented")
@Test
@Override
public void dropNamespace_ForNonExistingNamespace_ShouldThrowExecutionException() {}

@Disabled("Temporarily until admin.getNamespacesNames() is implemented")
@Test
@Override
public void dropNamespace_ForNonExistingNamespace_ShouldDropNamespaceProperly() {}

@Disabled("Temporarily until admin.getNamespacesNames() is implemented")
@Test
@Override
public void getNamespaceNames_ShouldReturnCreatedNamespaces() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import com.scalar.db.api.DistributedStorageAdminIntegrationTestBase;
import java.util.Map;
import java.util.Properties;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

public class DynamoAdminIntegrationTest extends DistributedStorageAdminIntegrationTestBase {

Expand All @@ -22,29 +20,4 @@ protected Map<String, String> getCreationOptions() {
protected boolean isIndexOnBooleanColumnSupported() {
return false;
}

@Disabled("Temporarily until admin.getNamespacesNames() is implemented")
@Test
@Override
public void createNamespace_ForNonExistingNamespace_ShouldCreateNamespaceProperly() {}

@Disabled("Temporarily until admin.getNamespacesNames() is implemented")
@Test
@Override
public void createNamespace_ForExistingNamespace_ShouldThrowExecutionException() {}

@Disabled("Temporarily until admin.getNamespacesNames() is implemented")
@Test
@Override
public void dropNamespace_ForNonExistingNamespace_ShouldThrowExecutionException() {}

@Disabled("Temporarily until admin.getNamespacesNames() is implemented")
@Test
@Override
public void dropNamespace_ForNonExistingNamespace_ShouldDropNamespaceProperly() {}

@Disabled("Temporarily until admin.getNamespacesNames() is implemented")
@Test
@Override
public void getNamespaceNames_ShouldReturnCreatedNamespaces() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public DynamoAdminTestUtils(Properties properties) {
.build();
metadataNamespace =
config.getNamespacePrefix().orElse("")
+ config.getTableMetadataNamespace().orElse(DynamoAdmin.METADATA_NAMESPACE);
+ config.getMetadataNamespace().orElse(DynamoAdmin.METADATA_NAMESPACE);
metadataTable = DynamoAdmin.METADATA_TABLE;
namespacePrefix = config.getNamespacePrefix().orElse("");
}
Expand Down
Loading

0 comments on commit 02bd289

Please sign in to comment.