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.
The connections.json file has default Suite Api Credentials. The intended behavior is that each connection either:
Has null values for each of their local values (host, username, password), in which case they use the default values, or
Has non-null values for each of their local values, in which case those override the defaults.
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.
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.