Examples of rejectOperation()


Examples of org.jboss.as.controller.transform.OperationTransformer.TransformedOperation.rejectOperation()

        ModelNode op = Util.createOperation(WRITE_ATTRIBUTE_OPERATION, addr);
        op.get(NAME).set("cipher-suite");
        op.get(VALUE).set(new ModelNode());
        TransformedOperation transOp = services.transformOperation(version, op);
        Assert.assertTrue(transOp.rejectOperation(success));

        op.get(VALUE).set("SSL_RSA_WITH_3DES_EDE_CBC_SHA");
        transOp = services.transformOperation(version, op);
        Assert.assertFalse(transOp.rejectOperation(success));
    }
View Full Code Here

Examples of org.jboss.as.controller.transform.OperationTransformer.TransformedOperation.rejectOperation()

        TransformedOperation transOp = services.transformOperation(version, op);
        Assert.assertTrue(transOp.rejectOperation(success));

        op.get(VALUE).set("SSL_RSA_WITH_3DES_EDE_CBC_SHA");
        transOp = services.transformOperation(version, op);
        Assert.assertFalse(transOp.rejectOperation(success));
    }


    private void testSSLAlias(KernelServices services, ModelNode noAliasModel, ModelNode aliasModel) throws Exception {
        //Check the aliased entry is not there
View Full Code Here

Examples of org.jboss.as.controller.transform.OperationTransformer.TransformedOperation.rejectOperation()

        for (PathAddress address : pathAddresses) {
            ModelNode enable = Util.createEmptyOperation("enable", address);
            TransformedOperation transformedEnable = services.transformOperation(modelVersion, enable);
            Assert.assertNotNull(transformedEnable.getTransformedOperation());
            Assert.assertFalse(transformedEnable.getFailureDescription(), transformedEnable.rejectOperation(success));

            ModelNode disable = Util.createEmptyOperation("disable", address);
            TransformedOperation transformedDisable = services.transformOperation(modelVersion, disable);
            Assert.assertNotNull(transformedDisable.getTransformedOperation());
            Assert.assertFalse(transformedDisable.getFailureDescription(), transformedDisable.rejectOperation(success));
View Full Code Here

Examples of org.jboss.as.controller.transform.OperationTransformer.TransformedOperation.rejectOperation()

            Assert.assertFalse(transformedEnable.getFailureDescription(), transformedEnable.rejectOperation(success));

            ModelNode disable = Util.createEmptyOperation("disable", address);
            TransformedOperation transformedDisable = services.transformOperation(modelVersion, disable);
            Assert.assertNotNull(transformedDisable.getTransformedOperation());
            Assert.assertFalse(transformedDisable.getFailureDescription(), transformedDisable.rejectOperation(success));
        }

    }

    private static FailedOperationTransformationConfig.ChainedConfig FAILED_TRANSFORMER_1_1_1 = NonWritableChainedConfig.createBuilder(
View Full Code Here

Examples of org.jboss.as.controller.transform.OperationTransformer.TransformedOperation.rejectOperation()

                    TransformedOperation transformedOp = kernelServices.transformOperation(entry.getKey(), op);
                    if (transformedOp.getTransformedOperation() != null) {
                        //Since rejected operations now execute on the slave to determine if it has been ignored or not
                        //we check the reject policy simulating a reject before adding it to the list of boot operations
                        if (!transformedOp.rejectOperation(SUCCESS)) {
                            transformedBootOperations.add(transformedOp.getTransformedOperation());
//                        } else {
//                            System.out.println(transformedOp.getFailureDescription());
                        }
                    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.