@@ -1183,6 +1183,7 @@ def test_get_alert_policy(request_type, transport: str = "grpc"):
1183
1183
display_name = "display_name_value" ,
1184
1184
combiner = alert .AlertPolicy .ConditionCombinerType .AND ,
1185
1185
notification_channels = ["notification_channels_value" ],
1186
+ severity = alert .AlertPolicy .Severity .CRITICAL ,
1186
1187
)
1187
1188
response = client .get_alert_policy (request )
1188
1189
@@ -1197,6 +1198,7 @@ def test_get_alert_policy(request_type, transport: str = "grpc"):
1197
1198
assert response .display_name == "display_name_value"
1198
1199
assert response .combiner == alert .AlertPolicy .ConditionCombinerType .AND
1199
1200
assert response .notification_channels == ["notification_channels_value" ]
1201
+ assert response .severity == alert .AlertPolicy .Severity .CRITICAL
1200
1202
1201
1203
1202
1204
def test_get_alert_policy_empty_call ():
@@ -1237,6 +1239,7 @@ async def test_get_alert_policy_async(
1237
1239
display_name = "display_name_value" ,
1238
1240
combiner = alert .AlertPolicy .ConditionCombinerType .AND ,
1239
1241
notification_channels = ["notification_channels_value" ],
1242
+ severity = alert .AlertPolicy .Severity .CRITICAL ,
1240
1243
)
1241
1244
)
1242
1245
response = await client .get_alert_policy (request )
@@ -1252,6 +1255,7 @@ async def test_get_alert_policy_async(
1252
1255
assert response .display_name == "display_name_value"
1253
1256
assert response .combiner == alert .AlertPolicy .ConditionCombinerType .AND
1254
1257
assert response .notification_channels == ["notification_channels_value" ]
1258
+ assert response .severity == alert .AlertPolicy .Severity .CRITICAL
1255
1259
1256
1260
1257
1261
@pytest .mark .asyncio
@@ -1425,6 +1429,7 @@ def test_create_alert_policy(request_type, transport: str = "grpc"):
1425
1429
display_name = "display_name_value" ,
1426
1430
combiner = alert .AlertPolicy .ConditionCombinerType .AND ,
1427
1431
notification_channels = ["notification_channels_value" ],
1432
+ severity = alert .AlertPolicy .Severity .CRITICAL ,
1428
1433
)
1429
1434
response = client .create_alert_policy (request )
1430
1435
@@ -1439,6 +1444,7 @@ def test_create_alert_policy(request_type, transport: str = "grpc"):
1439
1444
assert response .display_name == "display_name_value"
1440
1445
assert response .combiner == alert .AlertPolicy .ConditionCombinerType .AND
1441
1446
assert response .notification_channels == ["notification_channels_value" ]
1447
+ assert response .severity == alert .AlertPolicy .Severity .CRITICAL
1442
1448
1443
1449
1444
1450
def test_create_alert_policy_empty_call ():
@@ -1483,6 +1489,7 @@ async def test_create_alert_policy_async(
1483
1489
display_name = "display_name_value" ,
1484
1490
combiner = alert .AlertPolicy .ConditionCombinerType .AND ,
1485
1491
notification_channels = ["notification_channels_value" ],
1492
+ severity = alert .AlertPolicy .Severity .CRITICAL ,
1486
1493
)
1487
1494
)
1488
1495
response = await client .create_alert_policy (request )
@@ -1498,6 +1505,7 @@ async def test_create_alert_policy_async(
1498
1505
assert response .display_name == "display_name_value"
1499
1506
assert response .combiner == alert .AlertPolicy .ConditionCombinerType .AND
1500
1507
assert response .notification_channels == ["notification_channels_value" ]
1508
+ assert response .severity == alert .AlertPolicy .Severity .CRITICAL
1501
1509
1502
1510
1503
1511
@pytest .mark .asyncio
@@ -1923,6 +1931,7 @@ def test_update_alert_policy(request_type, transport: str = "grpc"):
1923
1931
display_name = "display_name_value" ,
1924
1932
combiner = alert .AlertPolicy .ConditionCombinerType .AND ,
1925
1933
notification_channels = ["notification_channels_value" ],
1934
+ severity = alert .AlertPolicy .Severity .CRITICAL ,
1926
1935
)
1927
1936
response = client .update_alert_policy (request )
1928
1937
@@ -1937,6 +1946,7 @@ def test_update_alert_policy(request_type, transport: str = "grpc"):
1937
1946
assert response .display_name == "display_name_value"
1938
1947
assert response .combiner == alert .AlertPolicy .ConditionCombinerType .AND
1939
1948
assert response .notification_channels == ["notification_channels_value" ]
1949
+ assert response .severity == alert .AlertPolicy .Severity .CRITICAL
1940
1950
1941
1951
1942
1952
def test_update_alert_policy_empty_call ():
@@ -1981,6 +1991,7 @@ async def test_update_alert_policy_async(
1981
1991
display_name = "display_name_value" ,
1982
1992
combiner = alert .AlertPolicy .ConditionCombinerType .AND ,
1983
1993
notification_channels = ["notification_channels_value" ],
1994
+ severity = alert .AlertPolicy .Severity .CRITICAL ,
1984
1995
)
1985
1996
)
1986
1997
response = await client .update_alert_policy (request )
@@ -1996,6 +2007,7 @@ async def test_update_alert_policy_async(
1996
2007
assert response .display_name == "display_name_value"
1997
2008
assert response .combiner == alert .AlertPolicy .ConditionCombinerType .AND
1998
2009
assert response .notification_channels == ["notification_channels_value" ]
2010
+ assert response .severity == alert .AlertPolicy .Severity .CRITICAL
1999
2011
2000
2012
2001
2013
@pytest .mark .asyncio
0 commit comments