added PATCH (#6059)
This commit is contained in:
parent
315a05eeb8
commit
2fc873d3b6
|
@ -36,8 +36,8 @@ public enum BundleEntryTransactionMethodEnum {
|
||||||
GET("GET", "http://hl7.org/fhir/http-verb"),
|
GET("GET", "http://hl7.org/fhir/http-verb"),
|
||||||
POST("POST", "http://hl7.org/fhir/http-verb"),
|
POST("POST", "http://hl7.org/fhir/http-verb"),
|
||||||
PUT("PUT", "http://hl7.org/fhir/http-verb"),
|
PUT("PUT", "http://hl7.org/fhir/http-verb"),
|
||||||
DELETE("DELETE", "http://hl7.org/fhir/http-verb"),
|
PATCH("PATCH", "http://hl7.org/fhir/http-verb"),
|
||||||
;
|
DELETE("DELETE", "http://hl7.org/fhir/http-verb");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Identifier for this Value Set:
|
* Identifier for this Value Set:
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
package ca.uhn.fhir.model.valueset;
|
||||||
|
|
||||||
|
import org.apache.jena.riot.web.HttpMethod;
|
||||||
|
import org.junit.jupiter.params.ParameterizedTest;
|
||||||
|
import org.junit.jupiter.params.provider.EnumSource;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
|
public class BundleEntryTransactionMethodEnumTest {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HEAD is not supported either; but won't show up in transaction bundles
|
||||||
|
*/
|
||||||
|
@ParameterizedTest
|
||||||
|
@EnumSource(value = HttpMethod.class,
|
||||||
|
mode = EnumSource.Mode.EXCLUDE,
|
||||||
|
names = {"METHOD_TRACE", "METHOD_OPTIONS", "METHOD_QUERY", "METHOD_HEAD"}
|
||||||
|
)
|
||||||
|
public void parseAllHTTPVerbs(HttpMethod theMethod) {
|
||||||
|
// test
|
||||||
|
BundleEntryTransactionMethodEnum val = BundleEntryTransactionMethodEnum.valueOf(theMethod.method());
|
||||||
|
|
||||||
|
// verify
|
||||||
|
assertEquals(theMethod.method(), val.getCode());
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
type: fix
|
||||||
|
issue: 6058
|
||||||
|
title: "Added `PATCH` operation to `BundleEntryTransactionMethodEnumTest`
|
||||||
|
in order to fully support transaction bundle operations.
|
||||||
|
"
|
|
@ -96,6 +96,7 @@ public class Batch2JobHelper {
|
||||||
try {
|
try {
|
||||||
await()
|
await()
|
||||||
.atMost(theSecondsToWait, TimeUnit.SECONDS)
|
.atMost(theSecondsToWait, TimeUnit.SECONDS)
|
||||||
|
.pollDelay(100, TimeUnit.MILLISECONDS)
|
||||||
.until(() -> {
|
.until(() -> {
|
||||||
checkCount.getAndIncrement();
|
checkCount.getAndIncrement();
|
||||||
boolean inFinalStatus = false;
|
boolean inFinalStatus = false;
|
||||||
|
|
Loading…
Reference in New Issue