tests: record AFP delete smoke success
This commit is contained in:
@@ -215,12 +215,11 @@ Example:
|
||||
```
|
||||
|
||||
The full smoke suite creates temporary directories under the tested parent using
|
||||
fresh short DOS-compatible leaf names by default. Local removal is best-effort:
|
||||
AFP Delete is not implemented yet, and the script often runs as an unprivileged
|
||||
Unix user while the server created the directory under its own identity. Use
|
||||
`--create-dir-name NAME` to override the default temporary leaf name, knowing
|
||||
that rerunning with the same explicit name may fail if a previous directory still
|
||||
exists.
|
||||
fresh short DOS-compatible leaf names by default. It now uses the AFP Delete
|
||||
endpoint for both pre-test cleanup and post-create cleanup, so the smoke no
|
||||
longer depends on local Unix `rmdir` permissions when the server created the
|
||||
directory under its own identity. Use `--create-dir-name NAME` to override the
|
||||
default temporary leaf name.
|
||||
|
||||
|
||||
## AFP Create File smoke test
|
||||
@@ -247,19 +246,45 @@ Example:
|
||||
```
|
||||
|
||||
The full smoke suite creates temporary files under the tested parent with fresh
|
||||
short DOS-compatible leaf names by default. Local removal is best-effort, just
|
||||
like the create-directory smoke, because the suite usually runs as an
|
||||
unprivileged Unix user while mars_nwe creates the file as the server-side
|
||||
identity. Use `--create-file-name NAME` to override the default leaf name;
|
||||
rerunning with the same explicit name may fail if a previous file still exists.
|
||||
short DOS-compatible leaf names by default. It now uses AFP Delete for both
|
||||
pre-test cleanup and post-create cleanup, avoiding local Unix `rm` permission
|
||||
assumptions when mars_nwe creates the file as the server-side identity. Use
|
||||
`--create-file-name NAME` to override the default leaf name.
|
||||
|
||||
Runtime status: the build-server smoke run verified both create-file variants.
|
||||
Legacy AFP Create File (`0x02`) created `SYS:PUBLIC/atst0` and returned
|
||||
`0x333bee1c`; AFP 2.0 Create File (`0x0e`) created `SYS:PUBLIC/atst02` and
|
||||
returned `0x4e329102`. Both IDs were re-read through AFP Entry ID From Path
|
||||
Name. The overall run still reported `failures=2`, but those failures were the
|
||||
pre-existing create-directory names `AFPTST0` and `AFPTST02`; the create-file
|
||||
checks themselves succeeded.
|
||||
Runtime status: the build-server smoke run verified both create-file variants
|
||||
with AFP Delete cleanup enabled. Legacy AFP Create File (`0x02`) created
|
||||
`SYS:PUBLIC/atst0` and returned `0x77ba6113`; AFP 2.0 Create File (`0x0e`)
|
||||
created `SYS:PUBLIC/atst02` and returned `0x3cd55515`. Both IDs were re-read
|
||||
through AFP Entry ID From Path Name and then removed through AFP Delete.
|
||||
|
||||
|
||||
## AFP Delete smoke test
|
||||
|
||||
`afp_delete_smoke` sends the WebSDK/nwafp.h AFP Delete request through
|
||||
libncp:
|
||||
|
||||
```text
|
||||
NCP 0x2222/35/03 AFP Delete
|
||||
```
|
||||
|
||||
The helper derives the parent Entry ID with AFP Entry ID From Path Name, sends
|
||||
only the leaf name to AFP Delete, and verifies that a follow-up Entry ID lookup
|
||||
for the deleted path no longer succeeds. The server implementation routes
|
||||
directory removal through the existing mars_nwe directory remove path and file
|
||||
removal through the existing NetWare delete-file path; it does not use local
|
||||
Unix `unlink`/`rmdir` calls from the test process.
|
||||
|
||||
Example:
|
||||
|
||||
```sh
|
||||
./tests/linux/afp_delete_smoke -S MARS -U SUPERVISOR -P secret SYS:PUBLIC/afpfile
|
||||
```
|
||||
|
||||
Runtime status: the smoke suite now uses AFP Delete for pre-test cleanup and
|
||||
post-create cleanup around both Create Directory variants and both Create File
|
||||
variants. The verified run deleted stale `afptst0`, `afptst02`, `atst0`, and
|
||||
`atst02` paths, recreated the directory and file pairs, deleted all four
|
||||
created objects again through AFP Delete, and ended with `failures=0`.
|
||||
|
||||
## AFP Entry ID smoke test
|
||||
|
||||
|
||||
Reference in New Issue
Block a user