Skip to content

Commit dc50606

Browse files
committed
extending hurl tests
1 parent 19f0a49 commit dc50606

File tree

6 files changed

+45
-7
lines changed

6 files changed

+45
-7
lines changed

.github/workflows/bootjar_testing.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,19 @@ jobs:
4040
- name: hurl install
4141
uses: gacts/install-hurl@v1
4242

43-
- name: hurl tests (windows)
43+
- name: hurl CRUD tests (windows)
4444
if: runner.os == 'Windows'
4545
shell: bash
4646
run: |
47-
for file in integration_tests/*.hurl; do
48-
hurl --variable host=http://localhost:8080 --test "$file" --verbose --error-format=long --continue-on-error
47+
for file in ./integration_tests/CRUD/*.hurl; do
48+
hurl --variable host=http://localhost:8080 --test "$file" --verbose --error-format=long --continue-on-error --report-html hurlreports
4949
done
5050
- name: hurl tests (other)
5151
if: runner.os != 'Windows'
52-
run: hurl --variable host=http://localhost:8080 --test integration_tests/*.hurl --verbose --error-format=long --continue-on-error
52+
run: hurl --variable host=http://localhost:8080 --test ./integration_tests/CRUD/*.hurl --verbose --error-format=long --continue-on-error --report-html hurlreports
53+
- name: hurl performance tests
54+
run: hurl --variable host=http://localhost:8080 --test ./integration_tests/performance/create_anno.hurl --jobs 1 --repeat 1000 --verbose --error-format=long --report-html hurlreports
55+
- name: hurl report preview
56+
uses: pavi2410/html-preview-action@v4
57+
with:
58+
html_file: 'hurlreports/index.html'

.github/workflows/gradle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up OpenJDK version ...
2727
uses: actions/setup-java@v4
2828
with:
29-
distribution: 'zulu'
29+
distribution: 'temurin'
3030
java-version: ${{ matrix.jdk }}
3131
- name: Grant execute permission for gradlew
3232
run: chmod +x gradlew
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ etag: header "ETag"
5454
# Delete the Container using ETag
5555
DELETE {{host}}/wap/helloWorld/
5656
If-Match: {{etag}}
57-
HTTP 204
57+
HTTP 204

integration_tests/create_container.hurl renamed to integration_tests/CRUD/create_container.hurl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ etag: header "ETag"
2424
# Delete the Container using ETag
2525
DELETE {{host}}/wap/annocontainer/
2626
If-Match: {{etag}}
27-
HTTP 204
27+
HTTP 204
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# server root is reachable
2+
GET {{host}}/wap/
3+
HTTP 200
4+
5+
#create container
6+
POST {{host}}/wap/
7+
Content-Type: application/ld+json; profile="http://www.w3.org/ns/anno.jsonld"
8+
Link: <http://www.w3.org/ns/ldp\#BasicContainer>; rel="type"
9+
Slug: crud_performance
10+
{
11+
"@context": [ "http://www.w3.org/ns/anno.jsonld", "http://www.w3.org/ns/ldp.jsonld" ],
12+
"@type": [ "ldp:Container", "ldp:BasicContainer", "AnnotationCollection"],
13+
"label":"This container will contain many annotations"
14+
}
15+
16+
# Create an Annotation
17+
POST {{host}}/wap/crud_performance/
18+
Content-Type: application/ld+json; profile="http://www.w3.org/ns/anno.jsonld"
19+
20+
{
21+
"@context": "http://www.w3.org/ns/anno.jsonld",
22+
"type": "Annotation",
23+
"body": {
24+
"type": "TextualBody",
25+
"value": "This is a comment",
26+
"format": "text/plain"
27+
},
28+
"target": "http://example.org/page1"
29+
}
30+
HTTP 201
31+
[Captures]
32+
anno: header "Location"

0 commit comments

Comments
 (0)