tests: record AFP rename smoke success

This commit is contained in:
a
2026-05-30 20:26:47 +00:00
committed by Mario Fetka
parent bcacd6142d
commit 5309422eb7
2 changed files with 62 additions and 29 deletions

View File

@@ -286,6 +286,38 @@ 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 Rename smoke test
`afp_rename_smoke` sends the WebSDK/nwafp.h AFP Rename request through
libncp:
```text
NCP 0x2222/35/07 AFP Rename
```
The helper derives the source and destination parent Entry IDs with AFP Entry
ID From Path Name, sends leaf names to AFP Rename, and verifies that the source
path disappears while the destination path resolves to the expected Entry ID.
Directory renames use the existing mars_nwe directory-aware move path. File
renames use the existing NetWare file move path with file-only search
attributes, so regular files are not filtered out by the directory search bit.
Example:
```sh
./tests/linux/afp_rename_smoke -S MARS -U SUPERVISOR -P secret \
SYS:PUBLIC/oldname SYS:PUBLIC/newname
```
Runtime status: the smoke suite now covers AFP Rename for both directories and
regular files. The verified run created and renamed `SYS:PUBLIC/d22240` to
`SYS:PUBLIC/d22240r`, preserving the namespace-derived directory Entry ID
`0x00000005`. It also created and renamed `SYS:PUBLIC/m22248` to
`SYS:PUBLIC/m22248r`, preserving the nwatalk/fallback AFP file Entry ID
`0x78da3728`. Both renamed objects were removed through AFP Delete, and the
full suite ended with `failures=0`.
## AFP Entry ID smoke test
`afp_entry_id_smoke` sends the WebSDK-documented NetWare AFP request: