Move tests to utilities. Clarify missing functionality

This commit is contained in:
dotasek 2024-11-08 11:26:43 -05:00
parent ebcbf4db49
commit cc00bb903c
2 changed files with 7 additions and 0 deletions

View File

@ -68,6 +68,7 @@ public class ManagedWebAccess {
}
private static WebAccessPolicy accessPolicy = WebAccessPolicy.DIRECT; // for legacy reasons
//TODO get this from fhir settings
private static List<String> allowedDomains = new ArrayList<>();
@Getter
private static IWebAccessor accessor;

View File

@ -207,4 +207,10 @@ public void testTokenAuthFromSettings() throws IOException, InterruptedException
null,
null, DUMMY_API_KEY);
}
@Test
public void verifyAllowedPaths() {
//TODO the allowed paths cannot be set for now, meaning all will be allowed.
ManagedWebAccess.inAllowedPaths("http://www.anywhere.com");
}
}