feat(tester): support isolated full regression workflow
This commit is contained in:
@@ -50,6 +50,25 @@ elif operation == "network_probe":
|
||||
"tcp": {"status": "ready", "observed": "443 open", "expected": "TCP reachable"},
|
||||
"http": {"status": "ready", "observed": 200, "expected": "HTTP 2xx-4xx"},
|
||||
}}))
|
||||
elif operation == "capability_probe":
|
||||
capability = request.get("capability")
|
||||
checks = {
|
||||
"album_picker": {
|
||||
"picker": {"status": "ready", "observed": "real picker opened and returned image-001"},
|
||||
},
|
||||
"photo_permission": {
|
||||
"permission": {"status": "ready", "observed": "permission state checked on device"},
|
||||
"test_image": {"status": "ready", "observed": "image-001 available in test album"},
|
||||
},
|
||||
"ime_pinyin": {
|
||||
"composition": {"status": "ready", "observed": "nihao composed in Chinese IME"},
|
||||
"candidates": {"status": "ready", "observed": "你好 candidate selected"},
|
||||
},
|
||||
}
|
||||
if scenario == "capability-missing" and capability == "album_picker":
|
||||
print(json.dumps({"status": "ready", "checks": {}}))
|
||||
else:
|
||||
print(json.dumps({"status": "ready", "checks": checks.get(capability, {})}))
|
||||
elif operation in {"install", "start"}:
|
||||
print(json.dumps({"status": "ready", "observed": operation + "ed mock artifact"}))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user