HBASE-21272 Re-add assertions for RS Group admin tests
This commit is contained in:
parent
ae606c3d7a
commit
cbc2876ac2
|
@ -141,6 +141,8 @@ public class TestRSGroupsAdmin1 extends TestRSGroupsBase {
|
||||||
String groupName = tablePrefix+"_foo";
|
String groupName = tablePrefix+"_foo";
|
||||||
LOG.info("testNamespaceConstraint");
|
LOG.info("testNamespaceConstraint");
|
||||||
rsGroupAdmin.addRSGroup(groupName);
|
rsGroupAdmin.addRSGroup(groupName);
|
||||||
|
assertTrue(observer.preAddRSGroupCalled);
|
||||||
|
assertTrue(observer.postAddRSGroupCalled);
|
||||||
admin.createNamespace(NamespaceDescriptor.create(nsName)
|
admin.createNamespace(NamespaceDescriptor.create(nsName)
|
||||||
.addConfiguration(RSGroupInfo.NAMESPACE_DESC_PROP_GROUP, groupName)
|
.addConfiguration(RSGroupInfo.NAMESPACE_DESC_PROP_GROUP, groupName)
|
||||||
.build());
|
.build());
|
||||||
|
@ -161,6 +163,8 @@ public class TestRSGroupsAdmin1 extends TestRSGroupsBase {
|
||||||
//test add non-existent group
|
//test add non-existent group
|
||||||
admin.deleteNamespace(nsName);
|
admin.deleteNamespace(nsName);
|
||||||
rsGroupAdmin.removeRSGroup(groupName);
|
rsGroupAdmin.removeRSGroup(groupName);
|
||||||
|
assertTrue(observer.preRemoveRSGroupCalled);
|
||||||
|
assertTrue(observer.postRemoveRSGroupCalled);
|
||||||
try {
|
try {
|
||||||
admin.createNamespace(NamespaceDescriptor.create(nsName)
|
admin.createNamespace(NamespaceDescriptor.create(nsName)
|
||||||
.addConfiguration(RSGroupInfo.NAMESPACE_DESC_PROP_GROUP, "foo")
|
.addConfiguration(RSGroupInfo.NAMESPACE_DESC_PROP_GROUP, "foo")
|
||||||
|
|
Loading…
Reference in New Issue