use of com.evolveum.midpoint.repo.sqale.qmodel.node.MNode in project midpoint by Evolveum.
the class SqaleRepoAddDeleteObjectTest method test838Node.
@Test
public void test838Node() throws Exception {
OperationResult result = createOperationResult();
given("node");
String objectName = "node" + getTestNumber();
var node = new NodeType(prismContext).name(objectName).nodeIdentifier("node-47").operationalState(NodeOperationalStateType.STARTING);
when("adding it to the repository");
repositoryService.addObject(node.asPrismObject(), null, result);
then("it is stored and relevant attributes are in columns");
assertThatOperationResult(result).isSuccess();
MNode row = selectObjectByOid(QNode.class, node.getOid());
assertThat(row.nodeIdentifier).isEqualTo("node-47");
assertThat(row.operationalState).isEqualTo(NodeOperationalStateType.STARTING);
}
Aggregations