Skip to content

Commit 3c5b6c4

Browse files
committed
Merge branch 'dev_hurltests' into development
# Conflicts: # .github/workflows/bootjar_testing.yml
2 parents 87e37db + a3e0b74 commit 3c5b6c4

File tree

6 files changed

+136
-5
lines changed

6 files changed

+136
-5
lines changed

.github/workflows/bootjar_testing.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@ 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

.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: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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: helloWorld
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 nothing"
14+
}
15+
HTTP 201
16+
17+
# Create an Annotation
18+
POST {{host}}/wap/helloWorld/
19+
Content-Type: application/ld+json; profile="http://www.w3.org/ns/anno.jsonld"
20+
21+
{
22+
"@context": "http://www.w3.org/ns/anno.jsonld",
23+
"type": "Annotation",
24+
"body": {
25+
"type": "TextualBody",
26+
"value": "This is a comment",
27+
"format": "text/plain"
28+
},
29+
"target": "http://example.org/page1"
30+
}
31+
HTTP 201
32+
[Captures]
33+
anno: header "Location"
34+
35+
# Get the Annotation and capture ETag
36+
GET {{anno}}
37+
Accept: application/ld+json; profile="http://www.w3.org/ns/anno.jsonld"
38+
HTTP 200
39+
[Captures]
40+
etag: header "ETag"
41+
42+
# Delete the Annotation using ETag
43+
DELETE {{anno}}
44+
If-Match: {{etag}}
45+
HTTP 204
46+
47+
# Get the Container and capture ETag
48+
GET {{host}}/wap/helloWorld/
49+
Accept: application/ld+json; profile="http://www.w3.org/ns/anno.jsonld"
50+
HTTP 200
51+
[Captures]
52+
etag: header "ETag"
53+
54+
# Delete the Container using ETag
55+
DELETE {{host}}/wap/helloWorld/
56+
If-Match: {{etag}}
57+
HTTP 204
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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: annocontainer
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 nothing"
14+
}
15+
HTTP 201
16+
17+
# Get the Container and capture ETag
18+
GET {{host}}/wap/annocontainer/
19+
Accept: application/ld+json; profile="http://www.w3.org/ns/anno.jsonld"
20+
HTTP 200
21+
[Captures]
22+
etag: header "ETag"
23+
24+
# Delete the Container using ETag
25+
DELETE {{host}}/wap/annocontainer/
26+
If-Match: {{etag}}
27+
HTTP 204
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# server root is reachable
2+
GET {{host}}
3+
HTTP 200
4+
5+
GET {{host}}/webapp
6+
[Options]
7+
location-trusted: true
8+
HTTP 200
9+
10+
GET {{host}}/javadoc
11+
[Options]
12+
location-trusted: true
13+
HTTP 200
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)