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

Add a "mock" mode #23

Open
thomas-fossati opened this issue Jan 24, 2025 · 2 comments
Open

Add a "mock" mode #23

thomas-fossati opened this issue Jan 24, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@thomas-fossati
Copy link
Contributor

We want to enable some early end-to-end testing of ratsd, without a real backend.

For that, we could have "mock" mode where custom evidence can be supplied from the command line, e.g.:

ratsd mock --evidence my-cmw-file.json
@iolivergithub
Copy link
Collaborator

curl -X POST http://x.y.z.w:1234/mock/uuuu?param1=x&param2=y -d '{ "bodyparam1":"xyz" }

Replace uuuu,x,y,z,xyz with whatever is required (if at all).

Also required are a few example CMW files

@iolivergithub iolivergithub added the enhancement New feature or request label Jan 24, 2025
@cowbon
Copy link
Collaborator

cowbon commented Mar 11, 2025

curl -X POST http://x.y.z.w:1234/mock/uuuu?param1=x&param2=y -d '{ "bodyparam1":"xyz" }

Replace uuuu,x,y,z,xyz with whatever is required (if at all).

Also required are a few example CMW files

PR #39 will bring in the MockTSM sub-attester, which is available all the time. I personally don't consider /mock is needed because /chares always returns the output from MockTSM .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants