File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/test/java/ca/uhn/fhir/jpa/starter Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,13 @@ void beforeEach() {
88
88
89
89
private Boolean hasCdsServices () throws IOException {
90
90
var response = callCdsServicesDiscovery ();
91
+
92
+ // NOTE: this is looking for a repsonse that indicates there are CDS services availalble.
93
+ // And empty response looks like: {"services": []}
94
+ // Looking at the actual response string consumes the InputStream which has side-effects, making it tricky to compare the actual contents.
95
+ // Hence the test just looks at the length to make this determination.
96
+ // The actual response has newlines in it which vary in size on some systems, but a value of 25 seems to work across linux/mac/windows
97
+ // to ensure the repsonse actually contains CDS services in it
91
98
return response .getEntity ().getContentLength () > 25 || response .getEntity ().isChunked ();
92
99
}
93
100
You can’t perform that action at this time.
0 commit comments