This repository was archived by the owner on Sep 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
main/java/com/marklogic/appdeployer/command
test/java/com/marklogic/appdeployer/command/security Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ public void setFilenamesToIgnore(String... filenames) {
5252 for (String f : filenames ) {
5353 set .add (f );
5454 }
55+ rff .setFilenamesToIgnore (set );
5556 } else {
5657 this .resourceFilenameFilter = new ResourceFilenameFilter (filenames );
5758 }
Original file line number Diff line number Diff line change 1+ package com .marklogic .appdeployer .command .security ;
2+
3+ import com .marklogic .appdeployer .AbstractAppDeployerTest ;
4+ import com .marklogic .mgmt .security .RoleManager ;
5+ import org .junit .Test ;
6+
7+ public class IgnoreRoleTest extends AbstractAppDeployerTest {
8+
9+ @ Test
10+ public void test () {
11+ DeployRolesCommand command = new DeployRolesCommand ();
12+ command .setFilenamesToIgnore ("sample-app-role2.xml" );
13+ initializeAppDeployer (command );
14+ appDeployer .deploy (appConfig );
15+
16+ try {
17+ RoleManager mgr = new RoleManager (manageClient );
18+ assertTrue (mgr .exists ("sample-app-role1" ));
19+ assertFalse ("Role should not have been created because its resource file was ignored" , mgr .exists ("sample-app-role2" ));
20+ } finally {
21+ undeploySampleApp ();
22+ }
23+ }
24+ }
You can’t perform that action at this time.
0 commit comments