Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requests: support a list of requests and no-session support #101

Merged
merged 2 commits into from
Aug 8, 2024

Conversation

twilfredo
Copy link
Collaborator

No description provided.

@twilfredo twilfredo requested a review from alistair23 August 7, 2024 02:17
@twilfredo
Copy link
Collaborator Author

This is a modified approach from #97 to address the review comments.

src/main.rs Show resolved Hide resolved
Copy link
Collaborator

@alistair23 alistair23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Let's add some unit tests though

src/main.rs Outdated Show resolved Hide resolved
src/main.rs Show resolved Hide resolved
src/main.rs Show resolved Hide resolved
This extends the `request` command to allow the user to specify a list
of requests that shall be ',' seperated.

request get-version,get-capabilities,negotiate-algorithms

requests with subcommands can be specified as follows:

request get-version,get-measurement[index=1,raw-bitsream]

Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
This adds a new argument `no-session`, allowing the user to send an SPDM
request(s) without establishing a session prior. That is, directly issue
only the requests specified in the order in which they are specified to
the responder.

Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
@twilfredo twilfredo force-pushed the wilfred/add-isolated-reqs-3 branch from d386c41 to 299cb69 Compare August 7, 2024 10:28
@twilfredo
Copy link
Collaborator Author

twilfredo commented Aug 7, 2024

Looks great! Let's add some unit tests though

Added a two tests cases that cover a range of positive and negative inputs. Let me know if the coverage is ok

@alistair23 alistair23 merged commit 5c127e5 into master Aug 8, 2024
2 checks passed
@alistair23 alistair23 deleted the wilfred/add-isolated-reqs-3 branch August 8, 2024 02:53
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.

2 participants