Skip to content

Adding support for version 2023-09-01#23553

Merged
dolauli merged 7 commits intoAzure:generationfrom
osid29:PAN-20230901
Dec 12, 2023
Merged

Adding support for version 2023-09-01#23553
dolauli merged 7 commits intoAzure:generationfrom
osid29:PAN-20230901

Conversation

@osid29
Copy link
Copy Markdown

@osid29 osid29 commented Nov 24, 2023

Description

Checklist

  • SHOULD select appropriate branch. Cmdlets from Autorest.PowerShell should go to generation branch.
  • SHOULD make the title of PR clear and informative, and in the present imperative tense.
  • SHOULD update ChangeLog.md file(s) appropriately
    • For any service, the ChangeLog.md file can be found at src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
    • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense. Add changelog in description section if PR goes into generation branch.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD have approved design review for the changes in this repository (Microsoft internal only) with following situations
    • Create new module from scratch
    • Create new resource types which are not easy to conform to Azure PowerShell Design Guidelines
    • Create new resource type which name doesn't use module name as prefix
    • Have design question before implementation
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT introduce breaking changes in Az minor release except preview version.
  • SHOULD NOT adjust version of module manually in pull request

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Nov 24, 2023

️✔️Az.Accounts
️✔️Build
️✔️PowerShell Core - Windows
⚠️Az.PaloAltoNetworks
️✔️Build
️✔️PowerShell Core - Windows
️✔️Breaking Change Check
️✔️PowerShell Core - Windows
⚠️Signature Check
⚠️PowerShell Core - Windows
Type Cmdlet Description Remediation
⚠️ Get-AzPaloAltoNetworksCertificateObjectLocalRulestack Get-AzPaloAltoNetworksCertificateObjectLocalRulestack Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzPaloAltoNetworksCertificateObjectLocalRulestack Get-AzPaloAltoNetworksCertificateObjectLocalRulestack changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzPaloAltoNetworksFirewall Get-AzPaloAltoNetworksFirewall Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzPaloAltoNetworksFirewall Get-AzPaloAltoNetworksFirewall changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzPaloAltoNetworksFirewallStatus Get-AzPaloAltoNetworksFirewallStatus Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzPaloAltoNetworksFirewallStatus Get-AzPaloAltoNetworksFirewallStatus changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzPaloAltoNetworksFqdnListLocalRulestack Get-AzPaloAltoNetworksFqdnListLocalRulestack Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzPaloAltoNetworksFqdnListLocalRulestack Get-AzPaloAltoNetworksFqdnListLocalRulestack changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzPaloAltoNetworksLocalRule Get-AzPaloAltoNetworksLocalRule Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzPaloAltoNetworksLocalRule Get-AzPaloAltoNetworksLocalRule changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzPaloAltoNetworksLocalRulestack Get-AzPaloAltoNetworksLocalRulestack Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzPaloAltoNetworksLocalRulestack Get-AzPaloAltoNetworksLocalRulestack changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ Get-AzPaloAltoNetworksPrefixListLocalRulestack Get-AzPaloAltoNetworksPrefixListLocalRulestack Changes the ConfirmImpact but does not set the SupportsShouldProcess property to true in the cmdlet attribute. Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue
⚠️ Get-AzPaloAltoNetworksPrefixListLocalRulestack Get-AzPaloAltoNetworksPrefixListLocalRulestack changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ New-AzPaloAltoNetworksFrontendSettingObject New-AzPaloAltoNetworksFrontendSettingObject changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ New-AzPaloAltoNetworksIPAddressObject New-AzPaloAltoNetworksIPAddressObject changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ New-AzPaloAltoNetworksProfileObject New-AzPaloAltoNetworksProfileObject changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
⚠️ New-AzPaloAltoNetworksTagInfoObject New-AzPaloAltoNetworksTagInfoObject changes the confirm impact. Please ensure that the change in ConfirmImpact is justified Verify that ConfirmImpact is changed appropriately by the cmdlet. It is very rare for a cmdlet to change the ConfirmImpact.
️✔️Help Example Check
️✔️PowerShell Core - Windows
️✔️Help File Existence Check
️✔️PowerShell Core - Windows
️✔️File Change Check
️✔️PowerShell Core - Windows
️✔️UX Metadata Check
️✔️PowerShell Core - Windows
⚠️Test
⚠️ - Linux
Type Title Current Coverage Description
⚠️ Test Coverage Less Than 50% 41.03 % Test coverage for the module cannot be lower than 50%.
⚠️ - MacOS
Type Title Current Coverage Description
⚠️ Test Coverage Less Than 50% 41.03% Test coverage for the module cannot be lower than 50%.
⚠️PowerShell Core - Windows
Type Title Current Coverage Description
⚠️ Test Coverage Less Than 50% 41.03% Test coverage for the module cannot be lower than 50%.

@dolauli dolauli marked this pull request as draft November 24, 2023 07:26
@dolauli
Copy link
Copy Markdown
Contributor

dolauli commented Nov 28, 2023

@osid29 According to the CI failures, there are some issues in your examples. Please fix them.

@osamasid
Copy link
Copy Markdown

@dolauli I have updated the PR and the checks seems to pass now. Please help with the merge

@dolauli dolauli marked this pull request as ready for review November 30, 2023 04:27
@dolauli dolauli self-assigned this Nov 30, 2023
{
$config = New-AzPaloAltoNetworksLocalRulestack -Name $env.LocalRulestackName -ResourceGroupName $env.resourceGroup -Location $env.location -Description "testing powershell" -DefaultMode 'NONE'
$config.Name | Should -Be $env.LocalRulestackName
} | Should -Not -Throw
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.

Is special reason that you remove Should -Not -Throw Here.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

@dolauli dolauli Dec 12, 2023

Choose a reason for hiding this comment

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

Is special reason that you remove Should -Not -Throw Here.

@osamasid You should not make those changes. The CI should pass without this change.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I reverted the changes and the CI checks are passing now

}

Describe 'Get-AzPaloAltoNetworksFirewall' {
It 'List' -skip {
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.

Please add tests for those new added cmdlets.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

There are no newly added cmdlets, correct me please if you see any.

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.

It is not about adding new tests, but you disabled all original tests. You will need to rerecord tests after you bump the API versions.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@dolauli I figured out that these tests are not skipped but are duplicates. All cmdlets scenarios are already covered in AzPaloAltoNetworks.Tests.ps1 in create, get, update, remove fashion. I have updated this PR
image

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 8, 2023

This PR was labeled "needs-revision" because it has unresolved review comments or CI failures.
Please resolve all open review comments and make sure all CI checks are green. Refer to our guide to troubleshoot common CI failures.

@dolauli
Copy link
Copy Markdown
Contributor

dolauli commented Dec 12, 2023

@osid29 Any comments to my first comment

@osid29
Copy link
Copy Markdown
Author

osid29 commented Dec 12, 2023

@osid29 Any comments to my first comment

@dolauli I have addressed both the comments. The CI checks are passing as well

V4 has been set as default, so no need to set it.
@dolauli dolauli merged commit 58459af into Azure:generation Dec 12, 2023
@@ -107,12 +107,24 @@ Reset counters
### [Save-AzPaloAltoNetworksFirewallLogProfile](Save-AzPaloAltoNetworksFirewallLogProfile.md)
Log Profile for Firewall

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.

I just noticed you do not add examples and tests for four new cmdlets. These four new cmdlets are new feature of autorest.powershell v4. In v4, if there is no patch API for a resource, we will generate an update-xxx cmdlet by using get->put API to simulate a Patch API.
I would suggest you keep those four cmdlets and add examples and tests for them. If you do not need them, please let me know and I will remove those four cmdlets through a directive.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hi @dolauli, we don't need below cmdlets now. If we see any adoption, we can update these in future requests. Please remove these.

'Update-AzPaloAltoNetworksFqdnListLocalRulestack',
'Update-AzPaloAltoNetworksLocalRule',
'Update-AzPaloAltoNetworksCertificateObjectLocalRulestack'
'Update-AzPaloAltoNetworksPrefixListLocalRulestack'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants