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

Expanded & clarified BerConverter tests #98676

Merged
merged 3 commits into from
Mar 6, 2024

Conversation

edwardneal
Copy link
Contributor

Relates to #97540.

I've added comments highlighting the actual and the expected data structures of each decoding test. There's asymmetry in ber_printf and ber_scanf for the "v" and "V" format strings, so I've added a new test case to highlight that and to demonstrate the correct encoding & decoding format strings.

This should demonstrate how to properly decode using the "v" format string
ber_printf will always write a series of octet strings if passed a string[] with the "v" or "V" format strings. ber_scanf expects an ASN.1 SEQUENCE OF octet strings.
@ghost
Copy link

ghost commented Feb 19, 2024

Tagging subscribers to this area: @dotnet/area-system-directoryservices, @jay98014
See info in area-owners.md if you want to be subscribed.

Issue Details

Relates to #97540.

I've added comments highlighting the actual and the expected data structures of each decoding test. There's asymmetry in ber_printf and ber_scanf for the "v" and "V" format strings, so I've added a new test case to highlight that and to demonstrate the correct encoding & decoding format strings.

Author: edwardneal
Assignees: -
Labels:

area-System.DirectoryServices

Milestone: -

@edwardneal edwardneal changed the title Issue 97540 tests Expanded & clarified BerConverter tests Feb 19, 2024
The latter doesn't match my computer, but the difference appears to be coming from within the underlying ber_scanf library so I can't investigate further.
Copy link
Contributor

@buyaa-n buyaa-n left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

Failures unrelated and known

@buyaa-n buyaa-n merged commit 5ade1ee into dotnet:main Mar 6, 2024
108 of 111 checks passed
@edwardneal edwardneal deleted the issue-97540-tests branch March 18, 2024 22:22
@github-actions github-actions bot locked and limited conversation to collaborators Apr 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants