use of org.jboss.as.controller.PathAddress in project wildfly by wildfly.
the class RBACConfigTestCase method testAddServerGroupScopedRole.
@Test
public void testAddServerGroupScopedRole() throws IOException {
PathAddress address = RBAC_BASE.append(SERVER_GROUP_SCOPED_ROLE, "WFCORE-1622_S");
String attribute = BASE_ROLE;
ModelNode value = new ModelNode("Operator");
ModelNode addOp = Util.createAddOperation(address);
addOp.get(attribute).set(value);
addOp.get(SERVER_GROUPS).add("main-server-group");
addTest(address, attribute, value, addOp);
}
use of org.jboss.as.controller.PathAddress in project wildfly by wildfly.
the class RBACConfigTestCase method testAddRoleMapping.
@Test
public void testAddRoleMapping() throws IOException {
PathAddress address = RBAC_BASE.append(ROLE_MAPPING, "Operator");
String attribute = INCLUDE_ALL;
ModelNode value = new ModelNode(true);
ModelNode addOp = Util.createAddOperation(address);
addOp.get(attribute).set(value);
addTest(address, attribute, value, addOp);
}
use of org.jboss.as.controller.PathAddress in project wildfly by wildfly.
the class RBACConfigTestCase method testModifySensitiveExpressionsConstraint.
@Test
public void testModifySensitiveExpressionsConstraint() throws IOException {
PathAddress mapping = RBAC_BASE.append(CONSTRAINT, VAULT_EXPRESSION);
modifyTest(mapping, CONFIGURED_REQUIRES_WRITE, new ModelNode(true), true);
}
use of org.jboss.as.controller.PathAddress in project wildfly by wildfly.
the class RBACConfigTestCase method testAddHostScopedRole.
@Test
public void testAddHostScopedRole() throws IOException {
PathAddress address = RBAC_BASE.append(HOST_SCOPED_ROLE, "WFCORE-1622_H");
String attribute = BASE_ROLE;
ModelNode value = new ModelNode("Operator");
ModelNode addOp = Util.createAddOperation(address);
addOp.get(attribute).set(value);
addOp.get(HOSTS).add("slave");
addTest(address, attribute, value, addOp);
}
use of org.jboss.as.controller.PathAddress in project wildfly by wildfly.
the class RBACConfigTestCase method testModifyApplicationConstraint.
@Test
public void testModifyApplicationConstraint() throws IOException {
PathAddress mapping = RBAC_BASE.append(CONSTRAINT, APPLICATION_CLASSIFICATION).append(TYPE, CORE).append(CLASSIFICATION, "deployment");
modifyTest(mapping, CONFIGURED_APPLICATION, new ModelNode(true), true);
}
Aggregations