Skip to content

[New Test Coverage] SctPkg/RedfishDiscoverBBTest: Add EFI_REDFISH_DISCOVER_PROTOCOL black-box tests (Mantis 1920, 1925, 2172) - #348

Open
cgjertsen wants to merge 1 commit into
tianocore:masterfrom
cgjertsen:redfish-discover-mantis-2172
Open

cgjertsen wants to merge 1 commit into
tianocore:masterfrom
cgjertsen:redfish-discover-mantis-2172

Conversation

@cgjertsen

Copy link
Copy Markdown
Contributor

Summary
Add new black-box test module for EFI_REDFISH_DISCOVER_PROTOCOL covering all four protocol functions introduced in UEFI 2.8 (Mantis 1920), with clarifications from Mantis 1925 and revised definitions from UEFI 2.8C (Mantis 2172).

Function tests:

GetNetworkInterfaceList() — valid call and interface count consistency
AcquireRedfishService() — synchronous discovery via host interface
AbortAcquireRedfishService() — basic abort with NULL target
ReleaseRedfishService() — release with empty list
Conformance tests:

GetNetworkInterfaceList() with NULL NumberOfNetworkInterfaces, NULL NetworkInterfaces, and NULL ImageHandle
AcquireRedfishService() with NULL Token, Flags == 0, VALIDATION-only flags, and NULL ImageHandle
ReleaseRedfishService() with NULL List
Per Mantis 2172, the EFI_REDFISH_DISCOVER_VALIDATION flag is a modifier rather than a discovery method — setting it alone is treated as Flags == 0 and returns EFI_INVALID_PARAMETER.

Test plan

Builds cleanly with GCC toolchain for X64 (requires fix-efi-h-tiano-pragma-once for Efi.h compat)

Verify conformance tests pass on platform with Redfish Discover protocol installed

Verify function tests produce WARNING (not FAIL) on platforms without a Redfish service
Ref: #323, #324

Update Redfish Discover black-box tests to align with UEFI 2.8C
(Mantis 2172) revised protocol definitions.

New conformance checkpoints:
- AcquireRedfishService() with Flags == EFI_REDFISH_DISCOVER_VALIDATION
  only (VALIDATION is a modifier, not a discovery method; implementation
  masks it out before checking Flags == 0)
- GetNetworkInterfaceList() with NULL ImageHandle
- AcquireRedfishService() with NULL ImageHandle

Update spec references in file headers and protocol header to cite
Mantis 2172.

Ref: tianocore#324

Signed-off-by: Carolyn Gjertsen <Carolyn.Gjertsen@amd.com>
@cgjertsen
cgjertsen force-pushed the redfish-discover-mantis-2172 branch from 88e48be to 5e3c0be Compare April 21, 2026 20:40
cgjertsen added a commit to cgjertsen/edk2-test that referenced this pull request May 14, 2026
Add 2025.05 revision history entry covering UEFI 2.8–2.10A test
updates (PRs tianocore#320, tianocore#346–tianocore#352). Register new chapters 33 (REST EX
Protocol) and 34 (Redfish Discover Protocol) in the Sphinx table
of contents.

Cc: PR tianocore#320, PR tianocore#346, PR tianocore#347, PR tianocore#348, PR tianocore#349, PR tianocore#350, PR tianocore#351, PR tianocore#352
Signed-off-by: Carolyn Gjertsen <Carolyn.Gjertsen@amd.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant