vmware / vmware-aria-operations-integration-sdk

The VMware Aria Operations Integration SDK contains libraries, tools, and documentation for developing Management Packs for VMware Aria Operations. It is intended to make creating a Management Pack simple and fast, while allowing developers to use the language of their choice.
https://vmware.github.io/vmware-aria-operations-integration-sdk/
Apache License 2.0
13 stars 6 forks source link

Cannot parse certificates in test method #356

Open swimmingdale opened 3 months ago

swimmingdale commented 3 months ago

Describe the bug

After properly implementing "endpoint_urls" functionality the certificate being passed to "test" cannot be parsed by the integration-sdk-adapter-library with version 1.0.2.

Reproduction steps

1.Implement "endpoint_urls" to return an https url of a valid https endpoint 2.test with mp-test by choosing Test Connection 3.When the test framework passes the certificate it cannot be parsed by the integration-sdk-adapter-library. The error is: Expected JsonPrimitive at 0, found {"cert_pem_string":"-----BEGIN CERTIFICATE-----\n....

Expected behavior

The library should parse the given certificates correctly

Additional context

No response