Skip to content

Commit cc99f0e

Browse files
committed
test: make tests inside apiSpaces run over k8s
1 parent 4f96d69 commit cc99f0e

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

.drone.star

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ config = {
135135
"apiSpaces",
136136
],
137137
"skip": False,
138+
"k8s": True,
138139
},
139140
"spacesShares": {
140141
"suites": [
@@ -1087,7 +1088,7 @@ def localApiTestPipeline(ctx):
10871088
params[item] = matrix[item] if item in matrix else defaults[item]
10881089
for storage in params["storages"]:
10891090
for run_with_remote_php in params["withRemotePhp"]:
1090-
run_on_k8s = params["k8s"] and ctx.build.event == "cron"
1091+
run_on_k8s = params["k8s"]
10911092
ocis_url = OCIS_URL
10921093
if run_on_k8s:
10931094
ocis_url = "https://%s" % OCIS_SERVER_NAME
@@ -1389,7 +1390,7 @@ def coreApiTestPipeline(ctx):
13891390
for run_with_remote_php in params["withRemotePhp"]:
13901391
filter_tags = "~@skipOnGraph&&~@skipOnOcis-%s-Storage" % ("OC" if storage == "owncloud" else "OCIS")
13911392
expected_failures_file = "%s/expected-failures-API-on-%s-storage.md" % (test_dir, storage.upper())
1392-
run_on_k8s = params["k8s"] and ctx.build.event == "cron"
1393+
run_on_k8s = params["k8s"]
13931394
ocis_url = OCIS_URL
13941395
if run_on_k8s:
13951396
ocis_url = "https://%s" % OCIS_SERVER_NAME

tests/acceptance/TestHelpers/GraphHelper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ public static function editUser(
312312
$accountEnabled,
313313
);
314314
$url = self::getFullUrl($baseUrl, 'users/' . $userId);
315+
var_dump($url, $payload);
315316
return HttpRequestHelper::sendRequest(
316317
$url,
317318
$method,

tests/acceptance/bootstrap/SpacesContext.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,6 +1847,7 @@ public function theUserHasCreatedASpaceByDefaultUsingTheGraphApi(
18471847
): void {
18481848
$space = ["name" => $spaceName];
18491849
$response = $this->createSpace($user, $space);
1850+
var_dump($response->getBody()->getContents());
18501851
$this->featureContext->theHTTPStatusCodeShouldBe(
18511852
201,
18521853
"Expected response status code should be 201 (Created)",

tests/config/drone/k3s/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ features:
3030
- "12345678"
3131
- "ownCloud"
3232
- "owncloud-1"
33+
quotas:
34+
default: "1000000000"
3335

3436
http:
3537
cors:

0 commit comments

Comments
 (0)