Skip to content

Add test_engine connections #124

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

Open
wants to merge 26 commits into
base: main
Choose a base branch
from

Conversation

Grant-Archibald-MS
Copy link
Contributor

As part of installation and automation of the CoE Kit active connections are required to enable cloud flows required for the setup and upgrade wizard.

The contribution adds a new sample terraform module that enables connections to be created using the Power Apps Portal to create interactive connections using Test Engine. The terraform module makes use of the generated connections.json file to update the solution settings used as part of solution import so that the connection references are connected to the supplied connection ids.

When imported with active connections that required Power Automate Cloud flows are enabled yb default so that the setup and upgrade wizard works as expected.

When the CoE Kit is imported without connections or with invalid connections the cloud flows will not be enabled and manual intervention is required to fix the connections and enable the required cloud flows to enable correct operation of the wizard steps.

image

@eduardodfmex
Copy link
Contributor

@Grant-Archibald-MS Thank you for your contributions, I will take a look.!

}


//TODO add comment expalining where that came from and how to update it if you need new connections referenced going into your new released solution
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we remove this TODO comment?

}
}

//TODO: If not build from source use "pac test run" to execute the the testPlan to create required connections
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this comment should be in readme file?

@@ -0,0 +1,25 @@
resource "null_resource" "build_from_source" {
#count = var.parameters.release.build_from_source && !var.parameters.release.connections_exist ? 1 : 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shoudn't this be uncommented?

solution_name = "CreatorKitCore"
}

module "create_connections" {
Copy link
Contributor

@mawasile mawasile Oct 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this module executes every time, but it should execute only when connection creation mode is set to test_engine. And it does not build using dontnet in linux container

core_components_parameters = {
admin_admine_mail_preferred_language = "en-US",
admin_admin_mail = "admin@contoso.com",
admin_app_connections_dataflow_id = "", //empty for import //what is that?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add comments explaining those parameters? Otherwise we should remove those comments completly

- Removed unused files and directories
- Added variables for DLP policy creation
- Updated main.tf to include DLP policy module
- Updated readme.md with Linux commands
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