Skip to content

Commit 755a3c8

Browse files
- Added robot test PG Session Debug Behaviour Canonical.
1 parent 53fcdf7 commit 755a3c8

File tree

7 files changed

+30796
-4
lines changed

7 files changed

+30796
-4
lines changed

internal/stackql/psqlwire/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func MakeWireServer(sbe sqlbackend.SQLBackendFactory, cfg dto.RuntimeCtx) (IWire
3838
var err error
3939
pgSrvMiscConfig := make(map[string]interface{})
4040
if cfg.PGSrvRawSrvCfg != "" {
41-
var err = yaml.Unmarshal([]byte(cfg.PGSrvRawSrvCfg), &pgSrvMiscConfig)
41+
err = yaml.Unmarshal([]byte(cfg.PGSrvRawSrvCfg), &pgSrvMiscConfig)
4242
if err != nil {
4343
return nil, err
4444
}

test/python/flask/github/app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ def update_org():
123123
return jsonify({"error": "Invalid request"}), 400
124124

125125

126+
@app.route('/repos/sillyorg/<string:repositoryId>/stargazers', methods=['GET'])
127+
def get_stargazers_defective(repositoryId: str):
128+
logger.warning("Invalid GET request for stargazers")
129+
error_msg = """{"message":"API rate limit exceeded for 111.1111.111.11. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.) If you reach out to GitHub Support for help, please include the request ID AAAA:AAAA:BBBBBB:BBBBBB:BBBBBBBB and timestamp 2025-01-01 01:00:00 UTC.","documentation_url":"https://docs.github.com/rest/overview/rate-limits-for-the-rest-api","status":"403"}"""
130+
return jsonify(error_msg), 403
131+
126132
@app.route('/users/<string:userId>', methods=['GET'])
127133
def get_user(userId):
128134
"""Retrieve user details dynamically from template."""

0 commit comments

Comments
 (0)