Skip to content

Users/alsehr/849 local test#968

Merged
AlexanderSehr merged 36 commits intomainfrom
users/alsehr/849_localTest
Feb 9, 2022
Merged

Users/alsehr/849 local test#968
AlexanderSehr merged 36 commits intomainfrom
users/alsehr/849_localTest

Conversation

@AlexanderSehr
Copy link
Copy Markdown
Contributor

@AlexanderSehr AlexanderSehr commented Feb 4, 2022

Change

  • Enabled local tests to run with a provided parameter file
  • Simplified token handling in script
  • Simplified token handling in pipeline
  • Simplified settings.json token handling
  • Updated documentation

Pipeline references
Network: RouteTables
AnalysisServices: Servers
.Platform: Dependencies
@ ADO Dependency pipeline: Build Status

Type of Change

Please delete options that are not relevant.

  • Bug fix (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)
  • This change requires a documentation update (Wiki)

@AlexanderSehr AlexanderSehr self-assigned this Feb 4, 2022
@AlexanderSehr AlexanderSehr added [cat] pipelines category: pipelines [prio] high importance of the issue: high priority documentation Improvements or additions to documentation enhancement New feature or request labels Feb 4, 2022
@AlexanderSehr AlexanderSehr added this to the v 0.4 milestone Feb 4, 2022
@AlexanderSehr AlexanderSehr linked an issue Feb 4, 2022 that may be closed by this pull request
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 8, 2022

Unit Test Results

  1 files  ±0  1 suites  ±0   19s ⏱️ -1s
  3 tests ±0  3 ✔️ ±0    0 💤 ±0  0 ±0 
35 runs  ±0  3 ✔️ ±0  32 💤 ±0  0 ±0 

Results for commit e0e20e7. ± Comparison against base commit f61dcc6.

This pull request removes 3 and adds 3 tests. Note that renamed tests count towards both.
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.Compute/availabilitySets] used resource type [availabilitySets] should use on of the recent API version(s). Currently using [2021-07-01]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.Compute/availabilitySets] used resource type [locks] should use on of the recent API version(s). Currently using [2017-04-01]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.Compute/availabilitySets] used resource type [roleassignments] should use on of the recent API version(s). Currently using [2021-04-01-preview]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.Network/routeTables] used resource type [locks] should use on of the recent API version(s). Currently using [2017-04-01]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.Network/routeTables] used resource type [roleassignments] should use on of the recent API version(s). Currently using [2021-04-01-preview]
/home/runner/work/ResourceModules/ResourceModules/arm/.global/global.module.tests.ps1 ‑ API version tests [All apiVersions in the template should be 'recent'].In [Microsoft.Network/routeTables] used resource type [routeTables] should use on of the recent API version(s). Currently using [2021-05-01]

♻️ This comment has been updated with latest results.

@ahmadabdalla
Copy link
Copy Markdown
Contributor

Something I noticed

VERBOSE: {
  "ResourceGroupName": "validation-rg",
  "TemplateFilePath": "/home/runner/work/ResourceModules/ResourceModules/arm/Microsoft.AnalysisServices/servers/deploy.bicep",
  "ManagementGroupId": "***",
  "Verbose": true,
  "DeploymentName": "servers-20220208T1002332788Z"
}

VERBOSE: Template file path: [/home/runner/work/ResourceModules/ResourceModules/arm/Microsoft.AnalysisServices/servers/deploy.bicep]
VERBOSE: Module name: [servers]
VERBOSE: Handling resource removal with deployment name [servers-20220208T1002332788Z]
VERBOSE: Determined deployment scope [resourcegroup]
VERBOSE: Found deployed resource [/subscriptions/***/resourceGroups/validation-rg/providers/Microsoft.AnalysisServices/servers/sxxazasweumin001]
VERBOSE: Total number of deployment target resources after fetching deployments [1]
VERBOSE: Total number of deployment target resources  after pre-filtering (duplicates) & ordering items [1]
VERBOSE: Total number of deployment target resources after formatting items [1]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]

which I found here.
Can't seem to see why all that verbosing is happening for a single token. Thoughts?

@AlexanderSehr
Copy link
Copy Markdown
Contributor Author

Something I noticed

VERBOSE: {
  "ResourceGroupName": "validation-rg",
  "TemplateFilePath": "/home/runner/work/ResourceModules/ResourceModules/arm/Microsoft.AnalysisServices/servers/deploy.bicep",
  "ManagementGroupId": "***",
  "Verbose": true,
  "DeploymentName": "servers-20220208T1002332788Z"
}

VERBOSE: Template file path: [/home/runner/work/ResourceModules/ResourceModules/arm/Microsoft.AnalysisServices/servers/deploy.bicep]
VERBOSE: Module name: [servers]
VERBOSE: Handling resource removal with deployment name [servers-20220208T1002332788Z]
VERBOSE: Determined deployment scope [resourcegroup]
VERBOSE: Found deployed resource [/subscriptions/***/resourceGroups/validation-rg/providers/Microsoft.AnalysisServices/servers/sxxazasweumin001]
VERBOSE: Total number of deployment target resources after fetching deployments [1]
VERBOSE: Total number of deployment target resources  after pre-filtering (duplicates) & ordering items [1]
VERBOSE: Total number of deployment target resources after formatting items [1]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]
VERBOSE: Using local tokens [namePrefix]

which I found here. Can't seem to see why all that verbosing is happening for a single token. Thoughts?

Seems its due to the resource removal where we fetch the resources names using the local tokens. Removed the verbosity

@AlexanderSehr AlexanderSehr enabled auto-merge (squash) February 9, 2022 12:15
Copy link
Copy Markdown
Contributor

@ahmadabdalla ahmadabdalla left a comment

Choose a reason for hiding this comment

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

No further comments from my side. Approved

@AlexanderSehr AlexanderSehr merged commit 9ba0d14 into main Feb 9, 2022
@AlexanderSehr AlexanderSehr deleted the users/alsehr/849_localTest branch February 9, 2022 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[cat] pipelines category: pipelines documentation Improvements or additions to documentation enhancement New feature or request [prio] high importance of the issue: high priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test-ScriptLocally script works with incorrect assumptions

2 participants