Skip to content

An initial skeletal version of the AZ PowerShell module #1

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

Merged
merged 65 commits into from
Mar 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
61ed920
Add basic Catesta module skeleton
Nepomuceno Mar 2, 2023
429dee8
Fixing some styling issues.
Mar 2, 2023
29b9ab5
Add basic checks and improved build time
Nepomuceno Mar 3, 2023
285d9cb
Rename files to Test and add code coverage
Nepomuceno Mar 3, 2023
b530ad7
Remove stub public method
Nepomuceno Mar 3, 2023
2de320d
Inplace update of matching configuration values...
Mar 3, 2023
fe0a151
Merging in changes
Mar 3, 2023
3d7f997
Tidying up some unused functionality
Mar 3, 2023
4a75761
Tidying up some unused functionality
Mar 3, 2023
eb50495
Correct test files
Nepomuceno Mar 6, 2023
2aca0f8
Add check for bicep
Nepomuceno Mar 6, 2023
8c13b15
Change url to use releases
Nepomuceno Mar 6, 2023
7e7317c
Add release download :)
Nepomuceno Mar 6, 2023
136c062
Change documentation location for test command
Nepomuceno Mar 6, 2023
3697c56
Remove integration tests that are not required
Nepomuceno Mar 6, 2023
7f335b2
Adding in multiple destination configuration values capability
Mar 6, 2023
13ba506
Merge branch 'initial_module_config' of https://github.com/Azure/ALZ-…
Mar 6, 2023
f068420
Tidy up file names
Mar 6, 2023
cc15ede
Breaking out functions into their own files
Mar 6, 2023
ed45df0
A few more refactorings
Mar 6, 2023
eb6011b
remove unused files
Nepomuceno Mar 6, 2023
92bea5b
Add test to initialize ConfigurationObject
Nepomuceno Mar 6, 2023
2a967e8
Addtest to print data
Nepomuceno Mar 6, 2023
64bf119
Updating test
Mar 6, 2023
4c6b24a
Merge branch 'initial_module_config' of https://github.com/Azure/ALZ-…
Mar 6, 2023
25580ac
Further tidyup
Mar 6, 2023
87de72f
Adding a happy path test for Request-ConfigurationValue
Mar 6, 2023
474b6af
Edit ALZ Configuration fiels in place
Nepomuceno Mar 6, 2023
0259c86
Correct tests for config
Nepomuceno Mar 6, 2023
fc8f494
Correct alignment
Nepomuceno Mar 6, 2023
8c4ab38
Added tests working
Nepomuceno Mar 6, 2023
155affa
Adding path fixes
Nepomuceno Mar 6, 2023
de324b7
Adding path fixes
Nepomuceno Mar 6, 2023
578b1f1
Fixing test and fixing object property iteration
Mar 6, 2023
a694e8a
Fixing a test which fails on restart
Mar 6, 2023
c9a16c9
Adding mock to the environment
Nepomuceno Mar 7, 2023
c825d74
Stowing this - we still need to tinker with configuration
Mar 7, 2023
c302193
Initial fix for new url
Nepomuceno Mar 7, 2023
65b008e
Handling orchestration directory changes
Mar 7, 2023
d0f96dc
Allowing for multiple bicep directories
Mar 7, 2023
68e6ca2
Adding missing dependency
Mar 8, 2023
a69dec2
Updating metadata
Mar 8, 2023
b536ae1
Trying to get some output from this failed test
Mar 8, 2023
2f152bd
Trying this out
Mar 8, 2023
858b4c4
Trying this out
Mar 8, 2023
3321600
Trying this out
Mar 8, 2023
3b560ad
Test is still failing...
Mar 8, 2023
a7d8cef
Trying out a different scope
Mar 8, 2023
e0d41cc
Adding some debugging to figure out why this test isn't working..
Mar 8, 2023
a27dca8
add version to environment destination
Nepomuceno Mar 9, 2023
d5aa299
Add powershel matrix property
Nepomuceno Mar 9, 2023
6c5f70c
Add assets copu and config
Nepomuceno Mar 9, 2023
12909bb
Add iac toggle
Nepomuceno Mar 9, 2023
cf69ee7
Trying to let the call stabilise before carrying on
Mar 9, 2023
94c894f
Fixing a comment
Mar 9, 2023
f215b14
remove unused files
Nepomuceno Mar 9, 2023
b7c7cdc
Creating tests
Nepomuceno Mar 10, 2023
1d0d05d
remove config initialization
Nepomuceno Mar 10, 2023
b6bd037
Correct build
Nepomuceno Mar 10, 2023
c3d6e69
change assert mock to should invoke
Nepomuceno Mar 10, 2023
a6ffd2f
Add check on the amount of times called
Nepomuceno Mar 10, 2023
6a8ebd1
Add check on the amount of times called
Nepomuceno Mar 10, 2023
e54c467
change json ordering
Nepomuceno Mar 10, 2023
e92e1c9
Making the JSON object consistently ordered to allow for easy compari…
lovelysandwich Mar 10, 2023
66c40dd
Adding to the Readme with a logo
Mar 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: Bug report
about: Submit a new bug
title: Bug report
labels: 'bug'
assignees: ''

---

<!--- Provide a general summary of the issue in the Title above -->

### Expected Behavior
<!--- Tell us what should happen -->

### Current Behavior
<!--- Tell us what happens instead of the expected behavior -->

### Possible Solution
<!--- Not obligatory, but suggest a fix/reason for the bug, -->

### Steps to Reproduce
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
<!--- reproduce this bug. Include code to reproduce, if relevant -->

1.
2.
3.
4.

### Context (Environment)
<!--- How has this issue affected you? What are you trying to accomplish? -->
<!--- Include as many relevant details about the environment where the bug was discovered. -->
* Operating System and version as reported by `$PSVersionTable.OS`:
* PowerShell versions as reported by `$PSVersionTable.PSEdition`:

<!--- Provide a general summary of the issue in the Title above -->

### Detailed Description
<!--- Provide a detailed description of the issue you are facing -->
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: 'Feature request'
labels: 'enhancement'
assignees: ''

---

### Description
<!--- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->

### Describe the solution you'd like
<!--- A clear and concise description of what you want to happen. -->

### Describe any alternatives you've considered
<!--- A clear and concise description of any alternative solutions or features you've considered. -->

### Additional context
<!--- Add any other context or screenshots about the feature request here. -->
13 changes: 13 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Pull Request

## Issue

Issue #, if available:

## Description

Description of changes:

## License

By submitting this pull request, I confirm that my contribution is made under the terms of the projects associated license.
57 changes: 57 additions & 0 deletions .github/workflows/wf_Windows_Core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/software-installed-on-github-hosted-runners
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#using-a-specific-shell
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-powershell
# https://github.com/actions/upload-artifact#where-does-the-upload-go
name: ActionsTest-Windows-pwsh-Build
on:
pull_request:
paths-ignore:
- '**.md'
- 'docs/**'
push:
paths-ignore:
- '**.md'
- 'docs/**'
jobs:
test:
name: Run Tests
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
pwsh: [ '7.1.3' ]
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Display the path
shell: pwsh
run: echo ${env:PATH}
- name: Version Display
shell: pwsh
run: $PSVersionTable
# uncomment below to explore what modules/variables/env variables are available in the build image
# - name: Modules and Variables Display
# shell: pwsh
# run: Get-Module -ListAvailable; (Get-Variable).GetEnumerator() | Sort-Object Name | Out-String; (Get-ChildItem env:*).GetEnumerator() | Sort-Object Name | Out-String
- name: Bootstrap
shell: pwsh
run: ./actions_bootstrap.ps1
- name: Test and Build
shell: pwsh
run: Invoke-Build -File .\src\ALZ.build.ps1
- name: Upload pester results
uses: actions/upload-artifact@v3
with:
name: pester-results
path: .\src\Artifacts\testOutput
if-no-files-found: warn
- name: Upload zip module archive build
uses: actions/upload-artifact@v3
with:
name: zip-archive
path: .\src\Archive
if-no-files-found: warn

Loading