Skip to content

Commit

Permalink
needs discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
az108 committed Aug 7, 2024
1 parent 16dfef2 commit 1067e57
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,12 @@ void test_accessPathAllowed() {
}
*/

/* OUTCOMMENTED: Test does not work as we have aspectJ for this case

@TestTest
void test_accessPathNormal() {
tests.assertThatEvents().haveExactly(1, testFailedWith(accessPathNormal, SecurityException.class));
}

*/

@TestTest
void test_accessPathRelativeGlobA() {
tests.assertThatEvents().haveExactly(1, finishedSuccessfully(accessPathRelativeGlobA));
Expand All @@ -69,15 +67,12 @@ void test_accessPathRelativeGlobDirectChildrenBlacklist() {
// testFailedWith(accessPathRelativeGlobDirectChildrenBlacklist, SecurityException.class));
}

/* OUTCOMMENTED: Test does not work as we have aspectJ for this case
@TestTest
void test_accessPathRelativeGlobDirectChildrenForbidden() {
tests.assertThatEvents().haveExactly(1,
testFailedWith(accessPathRelativeGlobDirectChildrenForbidden, SecurityException.class));
}

*/

@TestTest
void test_accessPathRelativeGlobRecursiveAllowed() {
tests.assertThatEvents().haveExactly(1, finishedSuccessfully(accessPathRelativeGlobRecursiveAllowed));
Expand All @@ -90,15 +85,12 @@ void test_accessPathRelativeGlobRecursiveBlacklist() {
// testFailedWith(accessPathRelativeGlobRecursiveBlacklist, SecurityException.class));
}

/* OUTCOMMENTED: Test does not work as we have aspectJ for this case
@TestTest
void test_accessPathRelativeGlobRecursiveForbidden() {
tests.assertThatEvents().haveExactly(1,
testFailedWith(accessPathRelativeGlobRecursiveForbidden, SecurityException.class));
}

*/

@TestTest
void test_accessPathTest() {
//OUTCOMMENTED: Test does not pass
Expand All @@ -110,13 +102,10 @@ void test_weAccessPath() {
tests.assertThatEvents().haveExactly(1, finishedSuccessfully(weAccessPath));
}

/* OUTCOMMENTED: Test does not work as we have aspectJ for this case
@TestTest
void test_accessFileSystem() {
tests.assertThatEvents().haveExactly(1, testFailedWith("accessFileSystem", SecurityException.class));
}

*/


}

0 comments on commit 1067e57

Please sign in to comment.