1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

Fix graphql tests

This commit is contained in:
Jake Barnby 2023-08-20 13:40:44 -04:00
parent 4c9c34d929
commit a1b10ef7a8
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C
2 changed files with 6 additions and 6 deletions

View file

@ -1368,8 +1368,7 @@ trait Base
total
deployments {
_id
buildStdout
buildStderr
buildLogs
}
}
}';
@ -1378,8 +1377,7 @@ trait Base
functionsGetDeployment(functionId: $functionId, deploymentId: $deploymentId) {
_id
buildId
buildStdout
buildStderr
buildLogs
}
}';
case self::$CREATE_FUNCTION:
@ -1392,8 +1390,8 @@ trait Base
}
}';
case self::$UPDATE_FUNCTION:
return 'mutation updateFunction($functionId: String!, $name: String!, $execute: [String!]!, $events: [String], $schedule: String, $timeout: Int) {
functionsUpdate(functionId: $functionId, name: $name, execute: $execute, events: $events, schedule: $schedule, timeout: $timeout) {
return 'mutation updateFunction($functionId: String!, $name: String!, $execute: [String!]!, $runtime: String!, $entrypoint: String!, $events: [String], $schedule: String, $timeout: Int) {
functionsUpdate(functionId: $functionId, name: $name, execute: $execute, runtime: $runtime, entrypoint: $entrypoint, events: $events, schedule: $schedule, timeout: $timeout) {
_id
name
runtime

View file

@ -382,6 +382,8 @@ class FunctionsServerTest extends Scope
'functionId' => $function['_id'],
'name' => 'Test Function Updated',
'execute' => [Role::any()->toString()],
'entrypoint' => 'index.php',
'runtime' => 'php-8.0',
'vars' => [
'name' => 'John Doe',
'age' => 42,