diff options
author | Instrumental <jonathan.gathman@att.com> | 2019-04-23 12:44:07 -0500 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2019-04-23 12:44:24 -0500 |
commit | 6feb44b8f354d039e74084a3fcd0ad218f4a5c45 (patch) | |
tree | c8249253543c6c24adbfe8de9eebe9b684b87cb9 /auth/auth-batch/src/test | |
parent | 50a914885f4aa2828e257663d8de0aa64c156cee (diff) |
Update Approval in Batch
Issue-ID: AAF-811
Change-Id: Iaed4c46901d5bd452979b1415cdccf85ce55211b
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/auth-batch/src/test')
-rw-r--r-- | auth/auth-batch/src/test/java/org/onap/aaf/auth/batch/helpers/test/JU_Approval.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/auth/auth-batch/src/test/java/org/onap/aaf/auth/batch/helpers/test/JU_Approval.java b/auth/auth-batch/src/test/java/org/onap/aaf/auth/batch/helpers/test/JU_Approval.java index 2e51d076..8fa20ef1 100644 --- a/auth/auth-batch/src/test/java/org/onap/aaf/auth/batch/helpers/test/JU_Approval.java +++ b/auth/auth-batch/src/test/java/org/onap/aaf/auth/batch/helpers/test/JU_Approval.java @@ -57,11 +57,12 @@ public class JU_Approval { @Test public void testRoleFromMemo() { - Assert.assertNull(approval.roleFromMemo(null)); - Assert.assertEquals(".admin", - approval.roleFromMemo("Re-Validate as Administrator for AAF Namespace '\'test\'test")); - Assert.assertEquals(".owner", approval.roleFromMemo("Re-Validate Ownership for AAF Namespace '\'test\'test")); - Assert.assertEquals("", approval.roleFromMemo("Re-Approval in Role '\'test\'test")); + Assert.assertNull(Approval.roleFromMemo(null)); + Assert.assertEquals("org.onap.ns.admin", + Approval.roleFromMemo(Approval.RE_VALIDATE_ADMIN + "org.onap.ns]")); + Assert.assertEquals("org.onap.ns.owner", Approval.roleFromMemo(Approval.RE_VALIDATE_OWNER + "org.onap.ns]")); + Assert.assertEquals("org.onap.ns.member", Approval.roleFromMemo(Approval.RE_APPROVAL_IN_ROLE + + "bob] + [org.onap.ns.member] - Expires 2018-12-25")); } @Test |