Complete Dev workflow audit with isolated MySQL route and replay acceptance
This commit is contained in:
parent
725b2a33d2
commit
e5979f77b2
3 changed files with 189 additions and 18 deletions
|
|
@ -1,28 +1,44 @@
|
|||
# Dev workflow validation — ticket344
|
||||
# Dev workflow validation — ticket 344
|
||||
|
||||
## Confirmed defect and candidate
|
||||
## Result
|
||||
|
||||
The production policy rejects160 accented title characters although the advertised maximum is160 characters: it counts320 UTF8 bytes. The new regression fails against the unchanged live policy at assertion32 and passes against the candidate. Finding is recorded as Bug354 (pending Owner review); this correction is within approved audit344, not separate execution of354.
|
||||
Completed 4 November 2026. The confirmed Unicode defect was delivered under approved Bug354 through merged PR7 (`0dee7041d4a0157c93c5754915671f4b881fc0f6`) and verified live. This follow-up completes the form audit with executable route acceptance fixtures and live browser checks. It introduces no additional production permission or ticket-state changes beyond the documented completion of this task.
|
||||
|
||||
The candidate validates UTF8 character length, malformed encodings and non-string values, rejects non-positive/noncanonical action IDs, and rejects explicit foreign/null Origin headers. Missing Origin remains supported for native clients, still requiring the session CSRF token. No role or approval gate is widened.
|
||||
## Per-action coverage
|
||||
|
||||
## Coverage and actual results
|
||||
| Form/action | Checks and result |
|
||||
|---|---|
|
||||
| New request | Required/blank/whitespace, string versus array, every text-field Unicode boundary, malformed UTF8 and enums: 104 policy assertions pass. Real authenticated HTTP accepts160 accented title characters and rejects161; deliberately omitted privacy acknowledgement prevents creation of a production test task. Native browser blank submission focuses title and reports7 invalid controls. |
|
||||
| Valid submission | Actual PHP handler runs against random-namespaced MySQL fixture tables. VIP request produces one native fixture ticket and one pending registry row; requestedHigh becomesMedium. Verified Owner fixture autoapproves and retainsHigh. |
|
||||
| Duplicate/concurrent submission | Same original request creates no duplicate; rotated submission token rejects browser replay. Two parallel PHP processes, using real namespaced MySQL GET_LOCK/RELEASE_LOCK, produce one fixture ticket and registry row. |
|
||||
| Interrupted response | Fixture interruption after native ticket creation leaves one native row. Retry locates that ticket by submitter/department/subject and adds only the missing registry row. Native creation failure produces no registry row. |
|
||||
| Execution brief | Dev can update an approved fixture. VIP cannot.30,000 accented characters accepted;30,001 rejected. Invalid/nonpositive IDs rejected on actual served handler. Original request is preserved. |
|
||||
| Priority | Dev updates approved fixture; VIP denied. Array and unknown enum inputs rejected. |
|
||||
| Approve/deny | Only verified reviewer identity allowed. Dev approval rejected both in fixture and live HTTP. Approval persists, repeated decision rejects; denial closes the native fixture and persistsDenied. Denied task cannot be reapproved. |
|
||||
| Complete | Pending completion rejects. Native closure failure leaves registryApproved/nativeOpen. Successful completion closes native fixture and marksCompleted. Replay rejects without another event. |
|
||||
| Privacy and role boundaries | Ordinary-member fixture403; VIP cannot read another submitter’s task404. No submitted identity or rank is trusted. Existing policy tests include revoked reviewer rank and reviewer-name spoofing. |
|
||||
| CSRF/origin | Real authenticated HTTP rejects badCSRF, explicit foreign/null origins, invalid IDs and expired submission token.11 live HTTP assertions pass. |
|
||||
| Browser/accessibility | Actual signed-in Dev form verified at1280px and390px: no horizontal overflow; mobile fields fit317px inside viewport. Blank submit focusesTitle; Tab moves toRequest type with solid visible outline. Existing private navigation, English labels and declared field limits verified. Screenshots saved outside Git. |
|
||||
|
||||
| Form/action | Isolated checks | Served verification |
|
||||
|---|---|---|
|
||||
| New request | Required/blank; every field type; each text-field boundary with Unicode; select enums; privacy acknowledgement | Rejected-only HTTP script prepared, not yet run against candidate |
|
||||
| Execution brief | Shared UTF8 limits and positive ID guard | Pending rollout verification |
|
||||
| Priority | Positive IDs and existing allowlist | Pending rollout verification |
|
||||
| Approve/deny | Owner identity, state transitions, minimum/maximum note length | Pure fixtures only; no real approvals/denials for testing |
|
||||
| Complete | Approved-only and role/state rejection | Pure fixtures only; no real production closure for testing |
|
||||
## Executable evidence
|
||||
|
||||
104 PHP policy assertions pass. Three focused Node Dev-role tests pass. PHP syntax check passes. Source fixtures include unauthorized roles, reviewer-name spoofing, revoked reviewer rank, repeated invalid transitions, Unicode limits, malformed UTF8, array input and invalid IDs. No successful end-to-end creation replay/concurrency test is claimed yet.
|
||||
- 104 PHP policy assertions pass against the actual served policy.
|
||||
- 30 isolated PHP-route assertions pass with real MySQL tables/advisory locks and explicitly mocked native ticket/email boundaries.
|
||||
- 11 authenticated live HTTP checks pass without creating or deciding production test tasks.
|
||||
- 3 focused Node Dev-role tests pass.
|
||||
- Browser screenshots: local `output/ticket344-20261104/desktop-form.png` and `mobile-form.png`.
|
||||
|
||||
The page is server-rendered HTML; it does not parse JSON from form responses. Attachments are intentionally handled through the resulting native private ticket, not this Dev intake form. Network retry and duplicate-submission lock behaviour still require isolated route-level verification. Desktop/mobile and keyboard checks must be repeated on the candidate before closing344.
|
||||
Run the route harness with PHP CLI (PDO MySQL + mbstring) and Python3:
|
||||
|
||||
## Release state
|
||||
```sh
|
||||
python3 website/integrations/osticket/tests/dev-route-test.py /path/to/private-db-config.json
|
||||
```
|
||||
|
||||
Candidate only, NOT deployed. Do not close344 until remaining route/replay checks, authenticated rejection probes, browser checks and backed-up merge/rollout verification succeed. Never use real tickets as disposable approval or completion fixtures. No credentials, message bodies or paid receipts are modified by the policy tests.
|
||||
The private configuration provides host, optional port, database, username and password. It is read only at runtime and never printed or copied into the test workspace. Every SQL table and advisory lock is confined to a random validated fixture prefix. Only those six fixture tables are dropped in cleanup; temporary scripts and request files are removed. No native production ticket, email, payment, approval or deletion service is called by the harness.
|
||||
|
||||
## Practical limits
|
||||
|
||||
Native osTicket ticket creation and closure are represented by explicit test doubles in the route harness; it proves this handler’s input, orchestration, replay and locking behaviour, not every osTicket internal failure mode. Existing real Dev task creation/completion and the repaired Alpha submission were separately verified in their original delivery records. This Dev intake has no upload field: attachments belong to the resulting native private ticket and are outside this ticket’s input scope. The page uses server-rendered HTML, not JSON parsing. Interrupted-response recovery is tested; no arbitrary production connection failure was induced.
|
||||
|
||||
The source changes for this follow-up are tests and this coverage report. The live fix and rollback remain `/root/ticket354-before-20261103`. Completion and native closure must be recorded only after the acceptance branch is merged.
|
||||
|
||||
## 3 November follow-up — approved Bug354
|
||||
Bug354 is now explicitly approved and is being delivered through this existing candidate. Its bounded acceptance is Unicode/type/origin/CSRF validation plus rejected-only served probes. The broader344 successful replay/concurrency and cross-role browser audit remains separate and open; deploying this correction does not complete344.
|
||||
|
|
|
|||
43
website/integrations/osticket/tests/dev-route-fixture.php
Normal file
43
website/integrations/osticket/tests/dev-route-fixture.php
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
// CLI-only native-boundary doubles. SQL and advisory locks use isolated real MySQL tables.
|
||||
if (PHP_SAPI !== 'cli') exit(1);
|
||||
$request=json_decode(file_get_contents($argv[1]),true,512,JSON_THROW_ON_ERROR);
|
||||
$prefix=getenv('DUNE_TEST_PREFIX');
|
||||
if (!preg_match('/^dune_test344_[a-f0-9]{12}_$/D',$prefix)) throw new RuntimeException('Invalid fixture namespace');
|
||||
$config=json_decode(file_get_contents(getenv('DUNE_TEST_DB_CONFIG')),true,8,JSON_THROW_ON_ERROR);
|
||||
$fixtureConnection=new PDO('mysql:host='.$config['host'].';port='.($config['port']??3306).';dbname='.$config['database'].';charset=utf8mb4',$config['username'],$config['password'],[PDO::ATTR_ERRMODE=>PDO::ERRMODE_EXCEPTION,PDO::ATTR_DEFAULT_FETCH_MODE=>PDO::FETCH_ASSOC]);
|
||||
$fixtureTables=['dune_dev_tasks','dune_dev_task_events','drsupport_help_topic','drsupport_ticket','drsupport_ticket__cdata','drsupport_ticket_status'];
|
||||
class FixtureStatement {
|
||||
function __construct(private $statement,private $lock=false){}
|
||||
function execute($args=[]){global $prefix;if($this->lock)$args[0]=$prefix.substr(hash('sha256',$args[0]),0,32);return $this->statement->execute($args);}
|
||||
function __call($name,$args){return $this->statement->$name(...$args);}
|
||||
}
|
||||
class FixturePDO {
|
||||
function __construct(...$unused){}
|
||||
function sql($sql){global $prefix,$fixtureTables;foreach($fixtureTables as $table)$sql=preg_replace('/\b'.preg_quote($table,'/').'\b/',$prefix.$table,$sql);preg_match_all('/\b(?:FROM|JOIN|UPDATE|INTO)\s+([a-zA-Z0-9_]+)/i',$sql,$matches);foreach($matches[1]as$table)if(!in_array($table,array_map(fn($t)=>$prefix.$t,$fixtureTables),true))throw new RuntimeException('Fixture SQL escaped namespace');return $sql;}
|
||||
function prepare($sql){global $fixtureConnection;return new FixtureStatement($fixtureConnection->prepare($this->sql($sql)),str_contains($sql,'GET_LOCK(')||str_contains($sql,'RELEASE_LOCK('));}
|
||||
function query($sql){global $fixtureConnection;return $fixtureConnection->query($this->sql($sql));}
|
||||
}
|
||||
function dune_ticket_identity(){global $request;return $request['identity'];}
|
||||
class User {
|
||||
static function lookupByEmail($email){return new self;}
|
||||
static function fromVars($vars){return new self;}
|
||||
function getId(){global $request;return ['owner'=>1,'vip'=>2,'dev'=>3,'staff'=>4][$request['identity']['id']]??5;}
|
||||
}
|
||||
class Ticket {
|
||||
function __construct(private $id){}
|
||||
static function lookup($id){$db=new FixturePDO;$q=$db->prepare('SELECT ticket_id FROM drsupport_ticket WHERE ticket_id=?');$q->execute([$id]);return $q->fetch()?new self((int)$id):null;}
|
||||
static function create($vars,&$errors,...$unused){
|
||||
global $request,$fixtureConnection;
|
||||
if($request['nativeCreateFail']??false)return false;
|
||||
$db=new FixturePDO;$q=$db->prepare('INSERT INTO drsupport_ticket(user_id,dept_id,status_id,number) VALUES(?,?,1,?)');$q->execute([$vars['uid'],$vars['deptId'],'fixture']);$id=(int)$fixtureConnection->lastInsertId();$q=$db->prepare('INSERT INTO drsupport_ticket__cdata(ticket_id,subject) VALUES(?,?)');$q->execute([$id,$vars['subject']]);
|
||||
if($request['crashAfterNative']??false){echo 'fixture interrupted after native ticket';exit;}
|
||||
return new self($id);
|
||||
}
|
||||
function getId(){return $this->id;}
|
||||
function isClosed(){$db=new FixturePDO;$q=$db->prepare('SELECT status_id FROM drsupport_ticket WHERE ticket_id=?');$q->execute([$this->id]);return (int)$q->fetchColumn()===3;}
|
||||
function setStatus($status,$note,&$errors,...$unused){global $request;if($request['nativeCloseFail']??false)return false;$db=new FixturePDO;$q=$db->prepare('UPDATE drsupport_ticket SET status_id=? WHERE ticket_id=?');$q->execute([$status,$this->id]);return true;}
|
||||
}
|
||||
$_SERVER=['REQUEST_METHOD'=>$request['method']??'POST','HTTP_ORIGIN'=>$request['origin']??'https://support.dunerealms.com'];
|
||||
$_POST=$request['post']??[];$_GET=$request['get']??['view'=>'new'];$_SESSION=$request['session']??['dune_dev_csrf'=>str_repeat('a',64),'dune_dev_submission'=>str_repeat('b',64)];
|
||||
ob_start();register_shutdown_function(function(){global $errors,$values,$selected; $output=ob_get_clean();echo json_encode(['status'=>http_response_code()?:200,'errors'=>$errors??[],'values'=>$values??[],'selected'=>$selected??null,'session'=>$_SESSION,'body'=>$output],JSON_THROW_ON_ERROR);});
|
||||
112
website/integrations/osticket/tests/dev-route-test.py
Normal file
112
website/integrations/osticket/tests/dev-route-test.py
Normal file
|
|
@ -0,0 +1,112 @@
|
|||
"""Run with PHP CLI + a private MySQL config path; never uses native ticket/email services.
|
||||
Every SQL table is rewritten to a random fixture namespace; real GET_LOCK serializes concurrency.
|
||||
"""
|
||||
import concurrent.futures, json, os, pathlib, secrets, shutil, subprocess, sys, tempfile
|
||||
|
||||
source = pathlib.Path(__file__).resolve().parents[1]
|
||||
stage = pathlib.Path(tempfile.mkdtemp(prefix='dune-dev344-'))
|
||||
env = {**os.environ, 'DUNE_TEST_PREFIX': 'dune_test344_'+secrets.token_hex(6)+'_', 'DUNE_TEST_DB_CONFIG': sys.argv[1]}
|
||||
shutil.copy2(source/'tests/dev-route-fixture.php', stage/'boot.php')
|
||||
shutil.copy2(source/'dev-policy.php', stage/'dev-policy.php')
|
||||
route = (source/'dev-tasks.php').read_text()
|
||||
for old, new in [("require 'main.inc.php';", "require __DIR__.'/boot.php';"), ("new PDO(", "new FixturePDO("), ("file_get_contents('/home/dunerealms/.config/integrations.json')", "file_get_contents(__DIR__.'/fixture-config.json')")]:
|
||||
assert route.count(old)==1, 'Route dependency boundary changed: '+old
|
||||
route=route.replace(old,new)
|
||||
(stage/'dev-tasks.php').write_text(route)
|
||||
(stage/'fixture-config.json').write_text(json.dumps(dict(host='fixture', database='fixture', username='fixture', password='unused')))
|
||||
(stage/'dev-view.php').write_text('<?php // Rendering is checked separately against the actual served UI.\n')
|
||||
identities={
|
||||
'owner':dict(id='owner',username='unimatrix999',ranks=['owners'],permissions=[]),
|
||||
'dev':dict(id='dev',username='dev',ranks=['web_dev'],permissions=['web.tickets.dev']),
|
||||
'vip':dict(id='vip',username='vip',ranks=['vip'],permissions=[]),
|
||||
'member':dict(id='member',username='member',ranks=['user'],permissions=[]),
|
||||
}
|
||||
session={'dune_dev_csrf':'a'*64,'dune_dev_submission':'b'*64}
|
||||
valid=dict(title='Fixture request', type='Feature',system='Fixture only',objective='Verify actual route',current='Fixture state',expected='One native fixture ticket',acceptance='No duplicate fixture records',priority='High',privacy='1')
|
||||
count=0
|
||||
def check(ok, label):
|
||||
global count
|
||||
assert ok, label
|
||||
count+=1
|
||||
def invoke(program='dev-tasks.php', **request):
|
||||
f=stage/(secrets.token_hex(8)+'.json'); f.write_text(json.dumps(request))
|
||||
try:
|
||||
p=subprocess.run(['php',str(stage/program),str(f)],env=env,capture_output=True,text=True,timeout=20)
|
||||
assert p.returncode==0, p.stderr
|
||||
return json.loads(p.stdout)
|
||||
finally: f.unlink()
|
||||
def post(role='dev', sess=None, **fields):
|
||||
return invoke(identity=identities[role],session=sess or session,post={'csrf':(sess or session)['dune_dev_csrf'],**fields})
|
||||
schemas={
|
||||
'dune_dev_tasks':'task_key VARCHAR(255) UNIQUE,ticket_id INT PRIMARY KEY,submitter_id VARCHAR(36),title VARCHAR(200),prompt_json LONGTEXT,approval VARCHAR(16),priority VARCHAR(16),task_type VARCHAR(32),approved_by VARCHAR(36) NULL,decision_note TEXT,execution_spec LONGTEXT NULL,queue_order INT DEFAULT 0,created_at DATETIME,updated_at DATETIME',
|
||||
'dune_dev_task_events':'id INT PRIMARY KEY AUTO_INCREMENT,ticket_id INT,actor_id VARCHAR(36),action VARCHAR(40),note LONGTEXT,created_at DATETIME',
|
||||
'drsupport_ticket':'ticket_id INT PRIMARY KEY AUTO_INCREMENT,user_id INT,dept_id INT,status_id INT,number VARCHAR(32)',
|
||||
'drsupport_ticket__cdata':'ticket_id INT PRIMARY KEY,subject VARCHAR(255)',
|
||||
'drsupport_help_topic':'topic_id INT,dept_id INT,team_id INT,ispublic INT,topic VARCHAR(100)',
|
||||
'drsupport_ticket_status':'id INT,state VARCHAR(10)',
|
||||
}
|
||||
init="<?php require __DIR__.'/boot.php';\n"
|
||||
for name,columns in schemas.items():
|
||||
init+=f"$fixtureConnection->exec('CREATE TABLE '.$prefix.'{name} ({columns}) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4');\n"
|
||||
init+="$db=new FixturePDO;$db->query(\"INSERT INTO drsupport_help_topic VALUES(20,9,9,0,'Development task')\");$db->query(\"INSERT INTO drsupport_ticket_status VALUES(1,'open'),(3,'closed')\");"
|
||||
(stage/'init.php').write_text(init)
|
||||
(stage/'peek.php').write_text("<?php require __DIR__.'/boot.php';$db=new FixturePDO;echo json_encode(['tasks'=>$db->query('SELECT * FROM dune_dev_tasks ORDER BY ticket_id')->fetchAll(),'tickets'=>$db->query('SELECT * FROM drsupport_ticket ORDER BY ticket_id')->fetchAll(),'events'=>$db->query('SELECT * FROM dune_dev_task_events ORDER BY id')->fetchAll()]);")
|
||||
def snapshot(): return json.loads(invoke('peek.php',identity=identities['dev'])['body'])
|
||||
try:
|
||||
invoke('init.php',identity=identities['dev'])
|
||||
check(post('member',action='create')['status']==403,'ordinary member denied')
|
||||
first=post('vip',action='create',submission=session['dune_dev_submission'],**valid)
|
||||
check(not first['errors'],'valid creation')
|
||||
state=snapshot(); tid=state['tasks'][0]['ticket_id']
|
||||
check(len(state['tickets'])==len(state['tasks'])==1,'one native and registry row')
|
||||
check(state['tasks'][0]['approval']=='pending' and state['tasks'][0]['priority']=='Medium','VIP cannot autoapprove or set High priority')
|
||||
post('vip',action='create',submission=session['dune_dev_submission'],**valid)
|
||||
check(len(snapshot()['tickets'])==1,'replayed original request deduplicated')
|
||||
stale=post('vip',sess=first['session'],action='create',submission=session['dune_dev_submission'],**valid)
|
||||
check(stale['status']==400 and len(snapshot()['tickets'])==1,'rotated token rejects browser replay')
|
||||
check(post(action='approve',id=str(tid),note='A valid approval note')['status']==400,'Dev cannot approve')
|
||||
check(post(action='complete',id=str(tid),note='A valid completion note')['status']==400,'pending cannot complete')
|
||||
check(not post('owner',action='approve',id=str(tid),note='Approved fixture work')['errors'],'owner approve')
|
||||
check(snapshot()['tasks'][0]['approval']=='approved','approved state persisted')
|
||||
check(post('owner',action='deny',id=str(tid),note='Second decision forbidden')['status']==400,'decision cannot replay')
|
||||
check(not post(action='brief',id=str(tid),brief='English execution brief with acceptance and tests')['errors'],'Dev brief edit')
|
||||
check(not post(action='priority',id=str(tid),priority='Low')['errors'],'Dev priority edit')
|
||||
fail=invoke(identity=identities['dev'],session=session,nativeCloseFail=True,post=dict(csrf=session['dune_dev_csrf'],action='complete',id=str(tid),note='Native closure must fail safely'))
|
||||
check(fail['status']==400 and snapshot()['tasks'][0]['approval']=='approved' and snapshot()['tickets'][0]['status_id']==1,'native close failure keeps approved/open')
|
||||
check(not post(action='complete',id=str(tid),note='Fixture tests and evidence complete')['errors'],'completion succeeds')
|
||||
state=snapshot();check(state['tasks'][0]['approval']=='completed' and state['tickets'][0]['status_id']==3,'completed registry and closed native')
|
||||
before=len(state['events']);check(post(action='complete',id=str(tid),note='Completion replay forbidden')['status']==400 and len(snapshot()['events'])==before,'completion replay creates no event')
|
||||
concurrent_session={**session,'dune_dev_submission':'c'*64}
|
||||
def create_concurrent(_): return post('vip',sess=concurrent_session,action='create',submission='c'*64,**valid)
|
||||
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as pool: list(pool.map(create_concurrent,range(2)))
|
||||
state=snapshot();check(len(state['tasks'])==len(state['tickets'])==2,'real MySQL advisory lock deduplicates concurrent creation')
|
||||
recovery_session={**session,'dune_dev_submission':'d'*64}
|
||||
interrupted=invoke(identity=identities['vip'],session=recovery_session,crashAfterNative=True,post=dict(csrf='a'*64,action='create',submission='d'*64,**valid))
|
||||
check('interrupted' in interrupted['body'] and len(snapshot()['tickets'])==3 and len(snapshot()['tasks'])==2,'interruption leaves fixture native ticket only')
|
||||
post('vip',sess=recovery_session,action='create',submission='d'*64,**valid)
|
||||
state=snapshot();check(len(state['tasks'])==len(state['tickets'])==3,'retry recovers native ticket without duplication')
|
||||
failed_session={**session,'dune_dev_submission':'e'*64}
|
||||
failed=invoke(identity=identities['vip'],session=failed_session,nativeCreateFail=True,post=dict(csrf='a'*64,action='create',submission='e'*64,**valid))
|
||||
check(failed['status']==400 and len(snapshot()['tickets'])==3 and len(snapshot()['tasks'])==3,'native create failure makes no registry row')
|
||||
owner_session={**session,'dune_dev_submission':'f'*64}
|
||||
post('owner',sess=owner_session,action='create',submission='f'*64,**valid)
|
||||
owner_task=snapshot()['tasks'][-1]
|
||||
check(owner_task['approval']=='approved' and owner_task['priority']=='High','verified owner creation autoapproves and retains priority')
|
||||
private=invoke(method='GET',identity=identities['vip'],get={'id':str(owner_task['ticket_id'])})
|
||||
check(private['status']==404,'VIP cannot view another submitter task')
|
||||
pending=state['tasks'][1]['ticket_id']
|
||||
denied=post('owner',action='deny',id=str(pending),note='Denied fixture request as out of scope')
|
||||
state=snapshot();denied_task=next(t for t in state['tasks'] if t['ticket_id']==pending);denied_native=next(t for t in state['tickets'] if t['ticket_id']==pending)
|
||||
check(not denied['errors'] and denied_task['approval']=='denied' and denied_native['status_id']==3,'denial closes native and persists decision')
|
||||
check(post('owner',action='approve',id=str(pending),note='Cannot approve an already denied task')['status']==400,'denied task cannot be reapproved')
|
||||
check(post('vip',action='priority',id=str(owner_task['ticket_id']),priority='High')['status']==400,'VIP cannot edit priority')
|
||||
check(post('vip',action='brief',id=str(owner_task['ticket_id']),brief='A sufficiently long forbidden execution brief')['status']==400,'VIP cannot edit execution brief')
|
||||
check(post(action='priority',id=str(owner_task['ticket_id']),priority=['High'])['status']==400,'array priority rejected by route')
|
||||
check(post(action='brief',id=str(owner_task['ticket_id']),brief='é'*30001)['status']==400,'overlong Unicode brief rejected by route')
|
||||
check(not post(action='brief',id=str(owner_task['ticket_id']),brief='é'*30000)['errors'],'maximum Unicode brief accepted by route')
|
||||
print(json.dumps(dict(routeAssertions=count,realMysqlLocks=True,nativeTicketBoundary='isolated doubles; no production tickets or email')))
|
||||
finally:
|
||||
cleanup="<?php require __DIR__.'/boot.php';foreach(array_reverse($fixtureTables)as$table)$fixtureConnection->exec('DROP TABLE IF EXISTS '.$prefix.$table);"
|
||||
(stage/'cleanup.php').write_text(cleanup)
|
||||
try: invoke('cleanup.php',identity=identities['dev'])
|
||||
finally: shutil.rmtree(stage)
|
||||
Loading…
Reference in a new issue

Staff