Closed mawasile closed 3 months ago
@mawasile I tried to test this locally and in a codespace, and got a mix of different errors in each place, probably related to configuration and Azure security. make test failed with symlink errors, which is probably a container problem. However I think I was able to successfully run the connections datasource example locally, and it looks like it missed the one OAI connection I have in the environment I was testing against. Let's block time to walk through what I'm trying and figure out whether I'm misguided or there's a real issue.
This pull request includes significant changes to the Power Platform provider to add support for managing connections and connection shares. The changes include new data sources for fetching connection shares and connections, new resources for creating and managing connections and connection shares, and updates to the provider and testing code to support these new features. The changes are primarily focused on the
powerplatform
package and its sub-packages.New Data Sources:
docs/data-sources/connection_shares.md
: Added a new data source to fetch connection shares. This includes details on how to use the data source and its schema.docs/data-sources/connections.md
: Added a new data source to fetch connections. This includes details on how to use the data source and its schema.New Resources:
docs/resources/connection.md
: Added a new resource to create and manage connections. This includes details on how to use the resource and its schema.docs/resources/connection_share.md
: Added a new resource to create and manage connection shares. This includes details on how to use the resource and its schema.Updates to Provider:
internal/powerplatform/provider.go
: Updated the provider to include the new connection and connection share services.Updates to Testing Code:
internal/powerplatform/datasource_connections_test.go
: Added a new test for the connections data source.Examples:
examples/data-sources/powerplatform_connection_shares/
: Added an example of how to use the connection shares data source. [1] [2] [3]examples/data-sources/powerplatform_connections/
: Added an example of how to use the connections data source. [1] [2]examples/resources/powerplatform_connection/
: Added an example of how to use the connection resource. [1] [2]examples/resources/powerplatform_connection_share/
: Added an example of how to use the connection share resource. [1] [2]Miscellaneous:
go.mod
: Updated thegithub.com/google/uuid
package to be a direct dependency.docs/resources/rest.md
: Fixed some typos in the documentation.