Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
ytsejam78 committed Oct 16, 2024
1 parent 68cc6f1 commit 60b524a
Showing 1 changed file with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,21 @@ SingleResourceRESTfulControllerTest >> requestToGETSubresource: aSubresourceUrl
applying: [ :request | request setAccept: aMediaRange ]
]

{ #category : 'private - HTTP requests' }
SingleResourceRESTfulControllerTest >> requestToPATCH: content at: aUrl as: aMediaType withPathParams: aDictionary applying: aConfiguration conditionalTo: anETag [

| request |
request := ( ZnRequest patch: aUrl )
setAccept: aMediaType;
setIfMatchTo: anETag;
entity: ( ZnEntity with: content type: aMediaType );
yourself.

aConfiguration value: request.

^ TeaRequest fromZnRequest: request pathParams: aDictionary
]

Check warning on line 141 in source/Stargate-SUnit-Model/SingleResourceRESTfulControllerTest.class.st

View check run for this annotation

Codecov / codecov/patch

source/Stargate-SUnit-Model/SingleResourceRESTfulControllerTest.class.st#L129-L141

Added lines #L129 - L141 were not covered by tests

{ #category : 'private - HTTP requests' }
SingleResourceRESTfulControllerTest >> requestToPATCHResourceIdentifiedBy: anIdentifier with: aRequestBody accepting: aMediaRange conditionalTo: anETag [

Expand All @@ -148,6 +163,27 @@ SingleResourceRESTfulControllerTest >> requestToPOST: content as: aMediaType [
yourself)
]

{ #category : 'private - HTTP requests' }
SingleResourceRESTfulControllerTest >> requestToPOST: content at: aUrl as: aMediaType withPathParams: aDictionary applying: aConfiguration [

| request |
request := ( ZnRequest post: aUrl )
entity: ( ZnEntity with: content type: aMediaType );
yourself.

aConfiguration value: request.

^ TeaRequest fromZnRequest: request pathParams: aDictionary
]

Check warning on line 177 in source/Stargate-SUnit-Model/SingleResourceRESTfulControllerTest.class.st

View check run for this annotation

Codecov / codecov/patch

source/Stargate-SUnit-Model/SingleResourceRESTfulControllerTest.class.st#L167-L177

Added lines #L167 - L177 were not covered by tests

{ #category : 'private - HTTP requests' }
SingleResourceRESTfulControllerTest >> requestToPOSTWithoutContentAt: aUrl identifiedBy: anIdentifier [

^ TeaRequest
fromZnRequest: ( ZnRequest post: aUrl )
pathParams: ( self parametersWith: anIdentifier )
]

Check warning on line 185 in source/Stargate-SUnit-Model/SingleResourceRESTfulControllerTest.class.st

View check run for this annotation

Codecov / codecov/patch

source/Stargate-SUnit-Model/SingleResourceRESTfulControllerTest.class.st#L180-L185

Added lines #L180 - L185 were not covered by tests

{ #category : 'private - support' }
SingleResourceRESTfulControllerTest >> resourceUrl [

Expand Down

0 comments on commit 60b524a

Please sign in to comment.