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

Connections with default suite api credentials now properly set the local values to none #326

Closed kjrokos closed 8 months ago

kjrokos commented 8 months ago

The connections.json file has default Suite Api Credentials. The intended behavior is that each connection either:

However, when a connection was loaded into memory, there was only the set of current credentials, so if the connection was ever resaved, then values that should have been null would be overwritten with the non-null defaults. This meant that if the defaults ever changed, connections that should have been using the defaults would continue to use the old defaults, as those would have been encoded into the individual connection.

In addition, there was a related issue where creating the first new connection and using the default suite api connection would return null values, which when passed to an adapter instance is not valid, and would cause the test to fail with a validation error message.

This PR addresses the above issues.