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 support for mapping leaf-lists of unions to protobufs. #927

Merged
merged 5 commits into from
Nov 7, 2023

Conversation

robshakir
Copy link
Contributor

* (M) integration_tests/integration_test.go
  - Reflect the fact that the gRIBI integration test cases is now
    implemented.
 * (M) protomap/proto.go
  - Add support for mapping both []any and gNMI TypedValue messages
    to fields within a protobuf from input gNMI paths.
 * (M) protomap/testdata/...
  - Additional fields in test protobufs.

 * (M) integration_tests/integration_test.go
  - Reflect the fact that the gRIBI integration test cases is now
    implemented.
 * (M) protomap/proto.go
  - Add support for mapping both []any and gNMI TypedValue messages
    to fields within a protobuf from input gNMI paths.
 * (M) protomap/testdata/...
  - Additional fields in test protobufs.
@coveralls
Copy link

coveralls commented Nov 4, 2023

Coverage Status

coverage: 89.621% (+0.04%) from 89.582%
when pulling 627e0d4 on protomap-leaflist-union-unmap
into 7a6594d on protomap-leaflist.

@wenovus wenovus changed the base branch from master to protomap-leaflist November 6, 2023 23:48
protomap/proto_test.go Show resolved Hide resolved
protomap/proto.go Outdated Show resolved Hide resolved
@robshakir robshakir merged commit ae4bda6 into protomap-leaflist Nov 7, 2023
7 checks passed
@robshakir robshakir deleted the protomap-leaflist-union-unmap branch November 7, 2023 15:08
robshakir added a commit that referenced this pull request Nov 7, 2023
* Add support leaf-lists in paths->protobuf.

 * (M) protomap/integration_tests/integration_test.go
  - Add test case for a failure that was causing a panic,
    where a leaf-list of union values was being handed to
    PathsToProto. Currently not yet implemented, but test
    checks error handling works as expected.
 * (M) protomap/proto(_test)?.go
  - Add support and testing for mapping of leaf-lists of
    YANG inbuilt types to protobufs.

* Add TODO.

* Throw an error for `repeated` in `makeWrapper`.

* Add support for mapping leaf-lists of unions to protobufs. (#927)

* Add support for mapping leaf-lists of unions to protobufs.

 * (M) integration_tests/integration_test.go
  - Reflect the fact that the gRIBI integration test cases is now
    implemented.
 * (M) protomap/proto.go
  - Add support for mapping both []any and gNMI TypedValue messages
    to fields within a protobuf from input gNMI paths.
 * (M) protomap/testdata/...
  - Additional fields in test protobufs.

* Add outdated file.

* Remove stale output.

* Improve test coverage - add handling for bool.
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.

3 participants