Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions src/alb/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

2.0.1
++++++
* Register command group for security-policy waf and add description.

2.0.0
++++++
* Upgrade API version to 2025-01-01, introducing Security Policy WAF.
Expand Down
5 changes: 5 additions & 0 deletions src/alb/azext_alb/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@
# pylint: disable=too-many-lines

from knack.help_files import helps # pylint: disable=unused-import

helps['network alb security-policy waf'] = """
type: group
short-summary: Manage and Configure WAF Security Policies for Application Gateway for Containers resource
"""
3 changes: 3 additions & 0 deletions src/alb/azext_alb/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ def load_command_table(self, _): # pylint: disable=unused-argument
self.command_table["network alb security-policy waf create"] = WafSecurityPolicyCreate(loader=self)
self.command_table["network alb security-policy waf delete"] = WafSecurityPolicyDelete(loader=self)
self.command_table["network alb security-policy waf update"] = WafSecurityPolicyUpdate(loader=self)

with self.command_group("network alb security-policy waf") as _:
pass
7 changes: 2 additions & 5 deletions src/alb/azext_alb/tests/latest/test_alb_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..'))

class AlbScenario(ScenarioTest):
@live_only()
@ResourceGroupPreparer(name_prefix='cli_record_test_tc_000999990', location="eastus2euap")
def test_alb_resources(self):
self.kwargs.update({
'rg': 'cli_record_test_tc_000999990',
'tc': 'tc1',
'fe': 'fe1',
'aso': 'a1',
Expand All @@ -32,10 +33,6 @@ def test_alb_resources(self):
'waf_policy': 'waf_policy1',
'sp_waf': 'sp_waf1',
})

#Works with subscription 668f1741-ef48-4132-bf98-28b3a3d3f257
# Create Resource group.
self.cmd('group create -n {rg} --location eastus2euap')

# Create Traffic Controller
tcCount1 = len(self.cmd('network alb list -g {rg}').get_output_in_json())
Expand Down
2 changes: 1 addition & 1 deletion src/alb/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


# HISTORY.rst entry.
VERSION = '2.0.0'
VERSION = '2.0.1'

# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand Down
Loading