Fix graphql tests
This commit is contained in:
parent
4c9c34d929
commit
a1b10ef7a8
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue