Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
#248 Mimetypes and groups are undeployed before users
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrudin committed Feb 28, 2018
1 parent d9579e1 commit 802fb0a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,9 @@ public abstract class SortOrderConstants {
public static Integer DEPLOY_FOREST_REPLICAS = 1200;

// Undo constants
public static Integer DELETE_GROUPS = 10000;

public static Integer DELETE_MIMETYPES = 9500;

public static Integer DELETE_USERS = 9000;
public static Integer DELETE_CERTIFICATE_TEMPLATES = 9010;
public static Integer DELETE_CERTIFICATE_AUTHORITIES = 9020;
public static Integer DELETE_EXTERNAL_SECURITY = 9030;
public static Integer DELETE_PROTECTED_COLLECTIONS = 9040;
public static Integer DELETE_QUERY_ROLESETS = 9050;
Expand All @@ -82,7 +78,11 @@ public abstract class SortOrderConstants {
// Protected paths reference roles
public static Integer DELETE_PROTECTED_PATHS = 9080;

/*
public static Integer DELETE_GROUPS = 8600;

public static Integer DELETE_MIMETYPES = 8500;

/*
* This executes before databases are deleted, as deleting databases normally deletes the primary forests, so we
* need to make sure the replicas are deleted first.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.marklogic.appdeployer.command;

import org.junit.Assert;
import org.junit.Test;

public class SortOrderConstantsTest extends Assert {

@Test
public void undeployMimetypesBeforeUsers() {
assertTrue("Mimetypes need to be undeployed before users since the user doing the deleting may be deleted when users are undeployed",
SortOrderConstants.DELETE_MIMETYPES < SortOrderConstants.DELETE_USERS);
}
}

0 comments on commit 802fb0a

Please sign in to comment.