acceptance: storebound api --yes without a terminal is refused (exit 1, nothing sent) since the TTY rule; the cell still expected a silent dry run and turned every acceptance job red
This commit is contained in:
parent
dda21d2570
commit
f5e7b907a9
1 changed files with 2 additions and 1 deletions
|
|
@ -180,7 +180,8 @@ export function cells(forms: string[]): Cell[] {
|
|||
no('play rollout [y/N] n', ['play', 'rollout', '--fraction', '0.2'], NO, { exit: [1, 3], expect: undefined }),
|
||||
// before the release, the phased release is only a setting of the version: no question
|
||||
no('apple release --phased on (version not released yet)', ['apple', 'release', '--phased', 'on'], NO, { exit: 0, expect: /phased release on/, noWrites: false }),
|
||||
no('api apple POST without a terminal (dry)', ['api', 'apple', 'bundleIds_createInstance', '--body', 'store/bundle.json', '--yes'], 'wrong\n', { exit: 0, expect: /nothing sent/ }),
|
||||
// --yes without a terminal is refused (exit 1, nothing sent), never a silent dry run
|
||||
no('api apple POST without a terminal (refused)', ['api', 'apple', 'bundleIds_createInstance', '--body', 'store/bundle.json', '--yes'], 'wrong\n', { exit: 1, expect: /need an interactive terminal.*Nothing was sent/ }),
|
||||
);
|
||||
return c;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue