Skip to content

[Modules] Multi additions to staticSites - #1662

Merged
Alexander Sehr (AlexanderSehr) merged 34 commits into
mainfrom
users/itpropro/staticSites
Oct 4, 2022
Merged

Alexander Sehr (AlexanderSehr) merged 34 commits into
mainfrom
users/itpropro/staticSites

Conversation

@AlexanderSehr

@AlexanderSehr Alexander Sehr (AlexanderSehr) commented Jul 12, 2022 •

Copy link
Copy Markdown
Contributor

Description

Based on PR by Jan-Henrik Damaschke (@itpropro) #1655

Added the following to staticSites

  • config (app config and function app config)
  • customDomains with different validations depending on apex or not
  • linkedBackends with the 2022-03-01 API to add custom function apps. The userDefinedFunctions endpoint should not be used and is currently broken.

Changes were verified, pester and deployment tested with the respective PowerShell functions. Readme and parameter files have been updated.

Pipeline references

For module/pipeline changes, please create and attach the status badge of your successful run.

Pipeline
Web: StaticSites

Type of Change

Please delete options that are not relevant.

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Update to documentation

* feat(staticsites):  Added linkedBackends to staticSites extension

* feat(staticsites):  Added tests, readme, linkedBackends

* docs(staticsites):  Removed parameter placeholder

* Update modules/Microsoft.Web/staticSites/config/readme.md

Co-authored-by: Alexander Sehr <[email protected]>

* Update modules/Microsoft.Web/staticSites/config/readme.md

Co-authored-by: Alexander Sehr <[email protected]>

* Update modules/Microsoft.Web/staticSites/customDomains/readme.md

Co-authored-by: Alexander Sehr <[email protected]>

* Update modules/Microsoft.Web/staticSites/linkedBackends/readme.md

Co-authored-by: Alexander Sehr <[email protected]>

* fix(staticsites):  Integrated PR feedback

Co-authored-by: Alexander Sehr <[email protected]>
@github-actions

github-actions Bot commented Jul 12, 2022 •

Copy link
Copy Markdown

Unit Test Results

    1 files  ±    0      1 suites  ±0   1m 17s ⏱️ +56s
165 tests +143  161 ✔️ +140  4 💤 +3  0 ❌ ±0 
172 runs  +150  167 ✔️ +146  5 💤 +4  0 ❌ ±0 

Results for commit 372fd69. ± Comparison against base commit b1101a2.

This pull request removes 22 and adds 165 tests. Note that renamed tests count towards both.
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ File/folder tests..test folder.[Microsoft.Network/connections] *parameters.json files in the .test folder should be valid json
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ File/folder tests..test folder.[Microsoft.Network/connections] folder should contain one or more *parameters.json files
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ File/folder tests.General module folder tests.[Microsoft.Network/connections] Module should contain a [.test] folder
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ File/folder tests.General module folder tests.[Microsoft.Network/connections] Module should contain a [deploy.json/deploy.bicep] file
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ File/folder tests.General module folder tests.[Microsoft.Network/connections] Module should contain a [readme.md] file
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ File/folder tests.General module folder tests.[Microsoft.Network/connections] Module should contain a [version.json] file
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ File/folder tests.General module folder tests.[Microsoft.Network/connections] Module should have a GitHub workflow
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ File/folder tests.General module folder tests.[Microsoft.Network/connections] Module should have an Azure DevOps pipeline
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ Parameter file tests.Deployment test file tests.[Microsoft.Network/connections] Bicep test deployment files should invoke test like [module testDeployment '../.*deploy.bicep' = {]
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ Parameter file tests.Deployment test file tests.[Microsoft.Network/connections] Bicep test deployment name should contain [-test-]
…
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.Web/staticSites/config] used resource type [staticSites/config] should use one of the recent API version(s). Currently using [2022-03-01]
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.Web/staticSites/customDomains] used resource type [staticSites/customDomains] should use one of the recent API version(s). Currently using [2022-03-01]
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.Web/staticSites/linkedBackends] used resource type [staticSites/linkedBackends] should use one of the recent API version(s). Currently using [2022-03-01]
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.Web/staticSites] used resource type [locks] should use one of the recent API version(s). Currently using [2017-04-01]
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.Web/staticSites] used resource type [privateEndpoints/privateDnsZoneGroups] should use one of the recent API version(s). Currently using [2021-08-01]
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.Web/staticSites] used resource type [privateEndpoints] should use one of the recent API version(s). Currently using [2021-08-01]
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.Web/staticSites] used resource type [roleassignments] should use one of the recent API version(s). Currently using [2022-04-01]
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.Web/staticSites] used resource type [staticSites/config] should use one of the recent API version(s). Currently using [2022-03-01]
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.Web/staticSites] used resource type [staticSites/customDomains] should use one of the recent API version(s). Currently using [2022-03-01]
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.Web/staticSites] used resource type [staticSites/linkedBackends] should use one of the recent API version(s). Currently using [2022-03-01]
…
This pull request removes 1 skipped test and adds 4 skipped tests. Note that renamed tests count towards both.
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ File/folder tests..test folder.[Microsoft.Network/connections] *parameters.json files in the .test folder should be valid json
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ Deployment template tests.Deployment template tests.[Microsoft.Web/staticSites/config] Variable names should be camel-cased (no dashes or underscores and must start with lower-case letter)
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ Deployment template tests.Deployment template tests.[Microsoft.Web/staticSites/customDomains] Variable names should be camel-cased (no dashes or underscores and must start with lower-case letter)
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ Deployment template tests.Deployment template tests.[Microsoft.Web/staticSites/linkedBackends] Variable names should be camel-cased (no dashes or underscores and must start with lower-case letter)
/home/runner/work/ResourceModules/ResourceModules/utilities/pipelines/staticValidation/module.tests.ps1 ‑ File/folder tests..test folder.[Microsoft.Web/staticSites] *parameters.json files in the .test folder should be valid json

♻️ This comment has been updated with latest results.

@AlexanderSehr
Alexander Sehr (AlexanderSehr) marked this pull request as draft July 12, 2022 15:45
@AlexanderSehr
Alexander Sehr (AlexanderSehr) marked this pull request as ready for review July 12, 2022 20:28
@itpropro

Copy link
Copy Markdown
Contributor

Erika Gressi (@eriqua) and @MrMCake can we finally close this PR? The pipeline is failing because of the word "id" is not in uppercase in the linked backends readme, maybe someone can do a quick fix here. Besides that, there is nothing left and I would really like to consume the changes from this module 😅

@AlexanderSehr

Copy link
Copy Markdown
Contributor Author

Hey Jan-Henrik Damaschke (@itpropro), I'll take care of it once #1898 is in to make it as easy for me as possible resolving conflicts. Should happen in the next couple days.

@eriqua

Copy link
Copy Markdown
Contributor

Hey Jan-Henrik Damaschke (@itpropro), I'll take care of it once #1898 is in to make it as easy for me as possible resolving conflicts. Should happen in the next couple days.

@MrMCake, Jan-Henrik Damaschke (@itpropro) PR #1898 is approved and ready to be merged.

@AlexanderSehr

Copy link
Copy Markdown
Contributor Author

Merged and retesting

@eriqua Erika Gressi (eriqua) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🆗

@AlexanderSehr
Alexander Sehr (AlexanderSehr) deleted the users/itpropro/staticSites branch October 4, 2022 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[cat] modules category: modules enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants