Skip to content

Commit a9d3844

Browse files
rearrange graph tests
1 parent afc17bd commit a9d3844

21 files changed

+31
-11
lines changed

.drone.star

+5-4
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ config = {
9494
"apiDepthInfinity",
9595
"apiLocks",
9696
"apiActivities",
97+
"apiServiceAvailability",
9798
],
9899
"skip": False,
99100
},
@@ -117,17 +118,17 @@ config = {
117118
"NOTIFICATIONS_DEBUG_ADDR": "0.0.0.0:9174",
118119
},
119120
},
120-
"graph": {
121+
"graphBasicAndGroup": {
121122
"suites": [
122123
"apiGraph",
123-
"apiServiceAvailability",
124+
"apiGraphGroup",
124125
],
125126
"skip": False,
126127
"withRemotePhp": [True],
127128
},
128-
"graphUserGroup": {
129+
"graphUser": {
129130
"suites": [
130-
"apiGraphUserGroup",
131+
"apiGraphUser",
131132
],
132133
"skip": False,
133134
"withRemotePhp": [True],

docs/ocis/development/testing.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ While running the tests, oCIS server is started with [ociswrapper](https://githu
6262

6363
```bash
6464
WITH_WRAPPER=false \
65-
BEHAT_FEATURE='tests/acceptance/features/apiGraphUserGroup/createUser.feature:26' \
65+
BEHAT_FEATURE='tests/acceptance/features/apiGraphGroup/createUser.feature:26' \
6666
make -C tests/acceptance/docker test-ocis-feature-ocis-storage
6767
```
6868

@@ -119,7 +119,7 @@ The tests for a single feature (a feature file) can also be run against the diff
119119
For example;
120120

121121
```bash
122-
BEHAT_FEATURE='tests/acceptance/features/apiGraphUserGroup/createUser.feature' \
122+
BEHAT_FEATURE='tests/acceptance/features/apiGraphGroup/createUser.feature' \
123123
make -C tests/acceptance/docker test-ocis-feature-ocis-storage
124124
```
125125

@@ -134,19 +134,19 @@ A specific scenario from a feature can be run by adding `:<line-number>` at the
134134
{{< /hint >}}
135135

136136
```bash
137-
BEHAT_FEATURE='tests/acceptance/features/apiGraphUserGroup/createUser.feature:26' \
137+
BEHAT_FEATURE='tests/acceptance/features/apiGraphGroup/createUser.feature:26' \
138138
make -C tests/acceptance/docker test-ocis-feature-ocis-storage
139139
```
140140

141141
Similarly, with S3 storage;
142142

143143
```bash
144144
# run a whole feature
145-
BEHAT_FEATURE='tests/acceptance/features/apiGraphUserGroup/createUser.feature' \
145+
BEHAT_FEATURE='tests/acceptance/features/apiGraphGroup/createUser.feature' \
146146
make -C tests/acceptance/docker test-ocis-feature-s3ng-storage
147147

148148
# run a single scenario
149-
BEHAT_FEATURE='tests/acceptance/features/apiGraphUserGroup/createUser.feature:26' \
149+
BEHAT_FEATURE='tests/acceptance/features/apiGraphGroup/createUser.feature:26' \
150150
make -C tests/acceptance/docker test-ocis-feature-s3ng-storage
151151
```
152152

tests/acceptance/config/behat.yml

+21-2
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,28 @@ default:
124124
- TrashbinContext:
125125
- SharingNgContext:
126126

127-
apiGraphUserGroup:
127+
apiGraphUser:
128128
paths:
129-
- "%paths.base%/../features/apiGraphUserGroup"
129+
- "%paths.base%/../features/apiGraphUser"
130+
context: *common_ldap_suite_context
131+
contexts:
132+
- FeatureContext: *common_feature_context_params
133+
- SettingsContext:
134+
- GraphContext:
135+
- SpacesContext:
136+
- CapabilitiesContext:
137+
- FilesVersionsContext:
138+
- OCSContext:
139+
- PublicWebDavContext:
140+
- TUSContext:
141+
- SpacesTUSContext:
142+
- OcisConfigContext:
143+
- TrashbinContext:
144+
- SharingNgContext:
145+
146+
apiGraphGroup:
147+
paths:
148+
- "%paths.base%/../features/apiGraphGroup"
130149
context: *common_ldap_suite_context
131150
contexts:
132151
- FeatureContext: *common_feature_context_params

0 commit comments

Comments
 (0)