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

patch: add missing mocktr181's response fields #182

Merged
merged 9 commits into from
Jul 11, 2024

Conversation

denopink
Copy link
Contributor

@denopink denopink commented Jul 8, 2024

  • add the missing statusCode field to mocktr181's response payload
  • add the expected values for the response fields Command and Names
  • add missing Success message for successful gets and patches
  • add missing Count field to mocktr181's response payload

@denopink denopink added bug Something isn't working enhancement improvement or small functionality added to an existing feature labels Jul 8, 2024
@denopink denopink requested review from schmidtw and piccione99 July 8, 2024 17:17
@denopink denopink self-assigned this Jul 8, 2024
@denopink denopink force-pushed the denopink/patch/mocktr181-response-issing-statusCode branch from 24cf454 to 48f0f25 Compare July 9, 2024 15:41
- add the missing `statusCode` field to mocktr181's response payload
- add the expected values for the response fields `Command` and `Names`
- add missing `Success` message for successful `gets` and `patches`
@denopink denopink force-pushed the denopink/patch/mocktr181-response-issing-statusCode branch from 48f0f25 to d556a1d Compare July 9, 2024 15:43
denopink added 3 commits July 9, 2024 11:44
- add the missing `statusCode` field to mocktr181's response payload
- add the expected values for the response fields `Command` and `Names`
- add missing `Success` message for successful `gets` and `patches`
@denopink denopink marked this pull request as draft July 9, 2024 16:14
@denopink denopink changed the title patch: add statusCode to mocktr181's response payload patch: add missing mocktr181's response fields Jul 9, 2024
@@ -173,32 +178,37 @@ func (h Handler) get(names []string) (int64, []byte, error) {
Value: mockParameter.Value,
DataType: mockParameter.DataType,
Attributes: mockParameter.Attributes,
Message: "Success",
Count: 1,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note: non-wildcard gets will always have a Count of 1 (based on parodus2ccsp and wdmp-c)

@denopink denopink marked this pull request as ready for review July 10, 2024 20:25
@denopink denopink requested a review from schmidtw July 10, 2024 22:31
@schmidtw schmidtw merged commit a3fff8d into main Jul 11, 2024
17 checks passed
@schmidtw schmidtw deleted the denopink/patch/mocktr181-response-issing-statusCode branch July 11, 2024 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement improvement or small functionality added to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants