Skip to content

Commit 96a9d3e

Browse files
committed
update bruno examples and cluster definitions
1 parent b57d05d commit 96a9d3e

30 files changed

Lines changed: 438 additions & 88 deletions

docker-compose/Flexo MMS Local Example Bruno/add user02 as org admin policy.bru renamed to docker-compose/Flexo MMS Local Example Bruno/add user02 read collection permission.bru

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
meta {
2-
name: add user02 as org admin policy
2+
name: add user02 read collection permission
33
type: http
4-
seq: 14
4+
seq: 24
55
}
66

77
put {
8-
url: {{host}}/policies/user02_openmbee_admin
8+
url: {{host}}/policies/user02_read_collection
99
body: text
1010
auth: inherit
1111
}
@@ -19,8 +19,8 @@ body:text {
1919

2020

2121
<> mms:subject <http://layer1-service/users/ldap/user/user02> ;
22-
mms:scope <http://layer1-service/orgs/openmbee> ;
23-
mms:role mms-object:Role.AdminOrg ;
22+
mms:scope <http://layer1-service/orgs/openmbee/collections/combined> ;
23+
mms:role mms-object:Role.ReadCollection ;
2424
.
2525
}
2626

docker-compose/Flexo MMS Local Example Bruno/collection.bru

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ auth:bearer {
1313
vars:pre-request {
1414
host: http://localhost:8080
1515
token:
16+
token2:
1617
}

docker-compose/Flexo MMS Local Example Bruno/create branch.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ meta {
55
}
66

77
put {
8-
url: {{host}}/orgs/openmbee/repos/hackathon/branches/newbranch
8+
url: {{host}}/orgs/openmbee/repos/test/branches/newbranch
99
body: text
1010
auth: inherit
1111
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
meta {
2+
name: create collection
3+
type: http
4+
seq: 21
5+
}
6+
7+
put {
8+
url: {{host}}/orgs/openmbee/collections/combined
9+
body: text
10+
auth: inherit
11+
}
12+
13+
headers {
14+
Content-Type: text/turtle
15+
}
16+
17+
body:text {
18+
<> dct:title "combined"@en ;
19+
mms:collects <../repos/test/branches/master>, <../repos/test/locks/newlock>, <../repos/test/scratches/unversioned>, <../repos/test/branches/newbranch> .
20+
21+
}
22+
23+
settings {
24+
encodeUrl: true
25+
timeout: 0
26+
}

docker-compose/Flexo MMS Local Example Bruno/create lock.bru

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
meta {
22
name: create lock
33
type: http
4-
seq: 15
4+
seq: 9
55
}
66

77
put {
8-
url: {{host}}/orgs/openmbee/repos/hackathon/locks/newlock
8+
url: {{host}}/orgs/openmbee/repos/test/locks/newlock
99
body: text
1010
auth: inherit
1111
}

docker-compose/Flexo MMS Local Example Bruno/create repo.bru

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ meta {
55
}
66

77
put {
8-
url: {{host}}/orgs/openmbee/repos/hackathon
8+
url: {{host}}/orgs/openmbee/repos/test
99
body: text
1010
auth: inherit
1111
}
@@ -15,7 +15,7 @@ headers {
1515
}
1616

1717
body:text {
18-
<> dct:title "hackathon"@en .
18+
<> dct:title "test"@en .
1919
}
2020

2121
settings {

docker-compose/Flexo MMS Local Example Bruno/create scratch.bru

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
meta {
22
name: create scratch
33
type: http
4-
seq: 9
4+
seq: 11
55
}
66

77
put {
8-
url: {{host}}/orgs/openmbee/repos/hackathon/scratches/unversioned
8+
url: {{host}}/orgs/openmbee/repos/test/scratches/unversioned
99
body: text
1010
auth: inherit
1111
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
meta {
2+
name: get collections graph
3+
type: http
4+
seq: 22
5+
}
6+
7+
get {
8+
url: {{host}}/orgs/openmbee/collections/combined/graph
9+
body: none
10+
auth: inherit
11+
}
12+
13+
headers {
14+
Content-Type: text/turtle
15+
}
16+
17+
settings {
18+
encodeUrl: true
19+
timeout: 0
20+
}

docker-compose/Flexo MMS Local Example Bruno/get model from branch.bru

Lines changed: 0 additions & 16 deletions
This file was deleted.

docker-compose/Flexo MMS Local Example Bruno/get model from lock.bru

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
meta {
22
name: get model from lock
33
type: http
4-
seq: 16
4+
seq: 17
55
}
66

77
get {
8-
url: {{host}}/orgs/openmbee/repos/hackathon/locks/newlock/graph
8+
url: {{host}}/orgs/openmbee/repos/test/locks/newlock/graph
99
body: none
1010
auth: inherit
1111
}

0 commit comments

Comments
 (0)