Граф коммитов

3 Коммитов

Автор SHA1 Сообщение Дата
Mary Sha 6e163baa6e
Inconsistencies Part 2 (Modules/BenchPress.Azure/) (#294)
* Align splat variables and lower case local variables for module code

* Lower case local vars for role assignment connector

* Move mocks up to beforeeach for unit tests

* update to utf8 with bom

* Remove return from env variable function

* Fix punctuation, capitalization and verbiage in powershell code comments

* Update Modules/BenchPress.Azure/Public/Confirm-ApiManagementLogger.ps1

Co-authored-by: Ozi Boms <zboms123@gmail.com>

* Update Modules/BenchPress.Azure/Public/Confirm-StorageContainer.ps1

Co-authored-by: Ozi Boms <zboms123@gmail.com>

* Remove indents

* fix small typo

---------

Co-authored-by: Ozi Boms <zboms123@gmail.com>
2023-04-04 15:01:03 -07:00
marclerwick 147c7ec01f
#171 Remove ErrorRecord from ConfirmResult class
* Removed artificial generation of ErrorRecords to be consistent with PowerShell community standards and best practices.

* Putting the break back into Confirm-ResourceGroup.ps1

* Putting the $ConfirmResult.Success check back into Confirm-Resource.ps1

* Fixing broken unit tests.

* I have no idea why these unit tests have started (properly) failing, this is unchanged code. But, that's why we have unit tests!
2023-03-03 00:02:47 -08:00
marclerwick b47a0205dd
#159 Refactor file structure
* Initial commit with all but one unit test functioning correctly.
Confirm-Resource.Tests.ps1 is failing due to "Unable to find type [ResourceType]", which makes no sense, since Get-ResourceByType uses the same enum, but the unit tests pass without issue.

* Merged examples into grouped folders.
Removed modules from the psd1.

* Added a build script that can be used both during development and to build the final .psm1 for publishing to PS Gallery.

* Minor code cleanup.

* Updating CI/CD workflows.

* Updated the installation and contributing docs.

* Moved pr-psgallery.yml workflow into ci.yml. Now that there is a "build" process for the module this should happen in the CI pipeline and not the PR pipeline.

* Fixing working directory for unit tests.

* Swapped out relative paths for the PS Gallery module name in the examples, because the relative path will no longer work without building the module.

* Moved the ci-publish-docs-branch.yml into the ci.yml. It made sense logically once I tried rewriting it after the refactor.

* Fixing broken reference in the 'ci_cd_workflows.md' file.

* Minor update to 'ci_cd_workflows.md'

* I honestly couldn't figure out why `ResourceType` was not able to be found. I tried every which way of `using`/`Import`ing/dot sourcing that can be imagined. I think that this is a fundamental issue with PowerShell. The more I researched the more I found about enums and classes not being available from nested modules. I'm not sure why the classes work and enums do not though.

* Fixing broken unit test's reference to `ResourceType.psm1`.
2023-02-28 16:32:31 -08:00