Skip to content

Commit 86d8a4f

Browse files
- Added robot test Update Returning Simple Projection.
1 parent a140723 commit 86d8a4f

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

test/python/stackql_test_tooling/flask/gcp/templates/buckets-update-generic.jinja.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"etag": "CAE=",
1212
"timeCreated": "2025-07-03T00:03:44.250Z",
1313
"updated": "2025-07-03T00:03:44.250Z",
14-
"lables": {{ labels }},
14+
"labels": {{ labels }},
1515
"softDeletePolicy": {
1616
"retentionDurationSeconds": "604800",
1717
"effectiveTime": "2025-07-03T00:03:44.250Z"

test/robot/functional/stackql_mocked_from_cmd_line.robot

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8635,3 +8635,30 @@ Insert Async Returning Simple Projection
86358635
... ${stdErrStr}
86368636
... stdout=${CURDIR}/tmp/Insert-Async-Returning-Simple-Projection.tmp
86378637
... stderr=${CURDIR}/tmp/Insert-Async-Returning-Simple-Projection-stderr.tmp
8638+
8639+
Update Returning Simple Projection
8640+
[Documentation] Update an object and return projected new object values. For synchronously updated objects.
8641+
${inputStrSQLite} = Catenate
8642+
... update google.storage.buckets set data__labels = '{ "app_stub": "factory" }' where bucket = 'demo-app-bucket1' returning labels, projectNumber;
8643+
${inputStrPostgres} = Catenate
8644+
... update google.storage.buckets set data__labels = '{ "app_stub": "factory" }' where bucket = 'demo-app-bucket1' returning labels, projectNumber;
8645+
${outputStr} = Catenate SEPARATOR=\n
8646+
... |------------------------|---------------|
8647+
... |${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}labels${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}${SPACE}|${SPACE}projectNumber${SPACE}|
8648+
... |------------------------|---------------|
8649+
... |${SPACE}{"app_stub":"factory"}${SPACE}|${SPACE}${SPACE}100000000001${SPACE}|
8650+
... |------------------------|---------------|
8651+
${inputStr} = Set Variable If "${SQL_BACKEND}" == "postgres_tcp" ${inputStrPostgres} ${inputStrSQLite}
8652+
Should Stackql Exec Inline Equal Both Streams
8653+
... ${STACKQL_EXE}
8654+
... ${OKTA_SECRET_STR}
8655+
... ${GITHUB_SECRET_STR}
8656+
... ${K8S_SECRET_STR}
8657+
... ${REGISTRY_NO_VERIFY_CFG_STR}
8658+
... ${AUTH_CFG_STR}
8659+
... ${SQL_BACKEND_CFG_STR_CANONICAL}
8660+
... ${inputStr}
8661+
... ${outputStr}
8662+
... ${EMPTY}
8663+
... stdout=${CURDIR}/tmp/Update-Returning-Simple-Projection.tmp
8664+
... stderr=${CURDIR}/tmp/Update-Returning-Simple-Projection-stderr.tmp

0 commit comments

Comments
 (0)