added PATCH (#6059)

This commit is contained in:
TipzCM 2024-06-28 11:53:22 -04:00 committed by GitHub
parent 315a05eeb8
commit 2fc873d3b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 35 additions and 2 deletions

View File

@ -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:

View File

@ -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());
}
}

View File

@ -0,0 +1,6 @@
---
type: fix
issue: 6058
title: "Added `PATCH` operation to `BundleEntryTransactionMethodEnumTest`
in order to fully support transaction bundle operations.
"

View File

@ -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;