// allow global
addRolePermissions(role, Permission.DEPLOY_BUNDLES);
BundleDestination dest1 = createDestination(subject, b1, "one", "/test", platformResourceGroup);
assertNotNull(dest1);
Configuration config = new Configuration();
config.put(new PropertySimple("bundletest.property", "bundletest.property value"));
BundleDeployment bd1;
bd1 = createDeployment(subject, "one", bv1, dest1, config);
assertNotNull(bd1);
// allow group
removeRolePermissions(role, Permission.DEPLOY_BUNDLES);
addRolePermissions(role, Permission.DEPLOY_BUNDLES_TO_GROUP);
BundleDestination dest2 = createDestination(subject, b1, "two", "/test2", platformResourceGroup);
assertNotNull(dest2);
Configuration config2 = new Configuration();
config2.put(new PropertySimple("bundletest.property", "bundletest.property value"));
BundleDeployment bd2;
bd2 = createDeployment(subject, "two", bv1, dest2, config2);
assertNotNull(bd1);
// deny delete deployment