@@ -19,25 +19,25 @@ def __init__(self, method_name, config_file=None, recording_dir=None, recording_
1919 self .cmd ('extension add -n ip-group' )
2020 self .cmd ('extension add -n virtual-wan' )
2121
22- # @ResourceGroupPreparer(name_prefix='cli_test_azure_firewall')
23- # def test_azure_firewall(self, resource_group):
24- # self.kwargs.update({
25- # 'af': 'af1',
26- # 'coll': 'rc1',
27- # 'rule1': 'rule1',
28- # 'rule2': 'rule2'
29- # })
30- # self.cmd('network firewall create -g {rg} -n {af} --threat-intel-mode Alert --allow-active-ftp', checks=[
31- # self.check('threatIntelMode', 'Alert'),
32- # self.check('additionalProperties."Network.FTP.AllowActiveFTP"', 'true')
33- # ])
34- # self.cmd('network firewall update -g {rg} -n {af} --threat-intel-mode Deny --allow-active-ftp false', checks=[
35- # self.check('threatIntelMode', 'Deny'),
36- # self.not_exists('additionalProperties."Network.FTP.AllowActiveFTP"')
37- # ])
38- # self.cmd('network firewall show -g {rg} -n {af}')
39- # self.cmd('network firewall list -g {rg}')
40- # self.cmd('network firewall delete -g {rg} -n {af}')
22+ @ResourceGroupPreparer (name_prefix = 'cli_test_azure_firewall' )
23+ def test_azure_firewall (self , resource_group ):
24+ self .kwargs .update ({
25+ 'af' : 'af1' ,
26+ 'coll' : 'rc1' ,
27+ 'rule1' : 'rule1' ,
28+ 'rule2' : 'rule2'
29+ })
30+ self .cmd ('network firewall create -g {rg} -n {af} --threat-intel-mode Alert --allow-active-ftp' , checks = [
31+ self .check ('threatIntelMode' , 'Alert' ),
32+ self .check ('additionalProperties."Network.FTP.AllowActiveFTP"' , 'true' )
33+ ])
34+ self .cmd ('network firewall update -g {rg} -n {af} --threat-intel-mode Deny --allow-active-ftp false' , checks = [
35+ self .check ('threatIntelMode' , 'Deny' ),
36+ self .not_exists ('additionalProperties."Network.FTP.AllowActiveFTP"' )
37+ ])
38+ self .cmd ('network firewall show -g {rg} -n {af}' )
39+ self .cmd ('network firewall list -g {rg}' )
40+ self .cmd ('network firewall delete -g {rg} -n {af}' )
4141
4242 @ResourceGroupPreparer (name_prefix = 'cli_test_az_firewall_autoscale_configuration' )
4343 def test_azure_firewall_autoscale_configuration (self , resource_group ):
0 commit comments