Skip to content

Commit 697a18c

Browse files
committed
removed duplicated expected header replacement from owlbot.py
1 parent a6e64c9 commit 697a18c

File tree

2 files changed

+0
-59
lines changed

2 files changed

+0
-59
lines changed

owlbot.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -114,20 +114,6 @@ def get_staging_dirs(
114114
'expected_headers = {"name": "projects/sample1/instances/sample2"}',
115115
'expected_headers = {"name": "projects/sample1/instances/sample2", "app_profile_id": ""}'
116116
)
117-
s.replace(
118-
"tests/unit/gapic/bigtable_v2/test_bigtable.py",
119-
"""
120-
expected_headers = {
121-
"table_name": "projects/sample1/instances/sample2/tables/sample3"
122-
}
123-
""",
124-
"""
125-
expected_headers = {
126-
"app_profile_id": "",
127-
"table_name": "projects/sample1/instances/sample2/tables/sample3"
128-
}
129-
"""
130-
)
131117
s.replace(
132118
"tests/unit/gapic/bigtable_v2/test_bigtable.py",
133119
"""

tests/unit/gapic/bigtable_v2/test_bigtable.py

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -6852,7 +6852,6 @@ def test_read_rows_routing_parameters_request_1_grpc():
68526852

68536853
expected_headers = {
68546854
"table_name": "projects/sample1/instances/sample2/tables/sample3",
6855-
"app_profile_id": "",
68566855
}
68576856
assert (
68586857
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -6911,7 +6910,6 @@ def test_read_rows_routing_parameters_request_3_grpc():
69116910

69126911
expected_headers = {
69136912
"table_name": "projects/sample1/instances/sample2/tables/sample3",
6914-
"app_profile_id": "",
69156913
}
69166914
assert (
69176915
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -6942,7 +6940,6 @@ def test_sample_row_keys_routing_parameters_request_1_grpc():
69426940

69436941
expected_headers = {
69446942
"table_name": "projects/sample1/instances/sample2/tables/sample3",
6945-
"app_profile_id": "",
69466943
}
69476944
assert (
69486945
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -7001,7 +6998,6 @@ def test_sample_row_keys_routing_parameters_request_3_grpc():
70016998

70026999
expected_headers = {
70037000
"table_name": "projects/sample1/instances/sample2/tables/sample3",
7004-
"app_profile_id": "",
70057001
}
70067002
assert (
70077003
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -7032,7 +7028,6 @@ def test_mutate_row_routing_parameters_request_1_grpc():
70327028

70337029
expected_headers = {
70347030
"table_name": "projects/sample1/instances/sample2/tables/sample3",
7035-
"app_profile_id": "",
70367031
}
70377032
assert (
70387033
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -7091,7 +7086,6 @@ def test_mutate_row_routing_parameters_request_3_grpc():
70917086

70927087
expected_headers = {
70937088
"table_name": "projects/sample1/instances/sample2/tables/sample3",
7094-
"app_profile_id": "",
70957089
}
70967090
assert (
70977091
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -7122,7 +7116,6 @@ def test_mutate_rows_routing_parameters_request_1_grpc():
71227116

71237117
expected_headers = {
71247118
"table_name": "projects/sample1/instances/sample2/tables/sample3",
7125-
"app_profile_id": "",
71267119
}
71277120
assert (
71287121
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -7181,7 +7174,6 @@ def test_mutate_rows_routing_parameters_request_3_grpc():
71817174

71827175
expected_headers = {
71837176
"table_name": "projects/sample1/instances/sample2/tables/sample3",
7184-
"app_profile_id": "",
71857177
}
71867178
assert (
71877179
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -7214,7 +7206,6 @@ def test_check_and_mutate_row_routing_parameters_request_1_grpc():
72147206

72157207
expected_headers = {
72167208
"table_name": "projects/sample1/instances/sample2/tables/sample3",
7217-
"app_profile_id": "",
72187209
}
72197210
assert (
72207211
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -7277,7 +7268,6 @@ def test_check_and_mutate_row_routing_parameters_request_3_grpc():
72777268

72787269
expected_headers = {
72797270
"table_name": "projects/sample1/instances/sample2/tables/sample3",
7280-
"app_profile_id": "",
72817271
}
72827272
assert (
72837273
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -7306,7 +7296,6 @@ def test_ping_and_warm_routing_parameters_request_1_grpc():
73067296

73077297
expected_headers = {
73087298
"name": "projects/sample1/instances/sample2",
7309-
"app_profile_id": "",
73107299
}
73117300
assert (
73127301
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -7363,7 +7352,6 @@ def test_read_modify_write_row_routing_parameters_request_1_grpc():
73637352

73647353
expected_headers = {
73657354
"table_name": "projects/sample1/instances/sample2/tables/sample3",
7366-
"app_profile_id": "",
73677355
}
73687356
assert (
73697357
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -7428,7 +7416,6 @@ def test_read_modify_write_row_routing_parameters_request_3_grpc():
74287416

74297417
expected_headers = {
74307418
"table_name": "projects/sample1/instances/sample2/tables/sample3",
7431-
"app_profile_id": "",
74327419
}
74337420
assert (
74347421
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -7459,7 +7446,6 @@ def test_prepare_query_routing_parameters_request_1_grpc():
74597446

74607447
expected_headers = {
74617448
"name": "projects/sample1/instances/sample2",
7462-
"app_profile_id": "",
74637449
}
74647450
assert (
74657451
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -7514,7 +7500,6 @@ def test_execute_query_routing_parameters_request_1_grpc():
75147500

75157501
expected_headers = {
75167502
"name": "projects/sample1/instances/sample2",
7517-
"app_profile_id": "",
75187503
}
75197504
assert (
75207505
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -7881,7 +7866,6 @@ async def test_read_rows_routing_parameters_request_1_grpc_asyncio():
78817866

78827867
expected_headers = {
78837868
"table_name": "projects/sample1/instances/sample2/tables/sample3",
7884-
"app_profile_id": "",
78857869
}
78867870
assert (
78877871
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -7950,7 +7934,6 @@ async def test_read_rows_routing_parameters_request_3_grpc_asyncio():
79507934

79517935
expected_headers = {
79527936
"table_name": "projects/sample1/instances/sample2/tables/sample3",
7953-
"app_profile_id": "",
79547937
}
79557938
assert (
79567939
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -7986,7 +7969,6 @@ async def test_sample_row_keys_routing_parameters_request_1_grpc_asyncio():
79867969

79877970
expected_headers = {
79887971
"table_name": "projects/sample1/instances/sample2/tables/sample3",
7989-
"app_profile_id": "",
79907972
}
79917973
assert (
79927974
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -8055,7 +8037,6 @@ async def test_sample_row_keys_routing_parameters_request_3_grpc_asyncio():
80558037

80568038
expected_headers = {
80578039
"table_name": "projects/sample1/instances/sample2/tables/sample3",
8058-
"app_profile_id": "",
80598040
}
80608041
assert (
80618042
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -8090,7 +8071,6 @@ async def test_mutate_row_routing_parameters_request_1_grpc_asyncio():
80908071

80918072
expected_headers = {
80928073
"table_name": "projects/sample1/instances/sample2/tables/sample3",
8093-
"app_profile_id": "",
80948074
}
80958075
assert (
80968076
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -8157,7 +8137,6 @@ async def test_mutate_row_routing_parameters_request_3_grpc_asyncio():
81578137

81588138
expected_headers = {
81598139
"table_name": "projects/sample1/instances/sample2/tables/sample3",
8160-
"app_profile_id": "",
81618140
}
81628141
assert (
81638142
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -8193,7 +8172,6 @@ async def test_mutate_rows_routing_parameters_request_1_grpc_asyncio():
81938172

81948173
expected_headers = {
81958174
"table_name": "projects/sample1/instances/sample2/tables/sample3",
8196-
"app_profile_id": "",
81978175
}
81988176
assert (
81998177
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -8262,7 +8240,6 @@ async def test_mutate_rows_routing_parameters_request_3_grpc_asyncio():
82628240

82638241
expected_headers = {
82648242
"table_name": "projects/sample1/instances/sample2/tables/sample3",
8265-
"app_profile_id": "",
82668243
}
82678244
assert (
82688245
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -8301,7 +8278,6 @@ async def test_check_and_mutate_row_routing_parameters_request_1_grpc_asyncio():
83018278

83028279
expected_headers = {
83038280
"table_name": "projects/sample1/instances/sample2/tables/sample3",
8304-
"app_profile_id": "",
83058281
}
83068282
assert (
83078283
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -8376,7 +8352,6 @@ async def test_check_and_mutate_row_routing_parameters_request_3_grpc_asyncio():
83768352

83778353
expected_headers = {
83788354
"table_name": "projects/sample1/instances/sample2/tables/sample3",
8379-
"app_profile_id": "",
83808355
}
83818356
assert (
83828357
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -8411,7 +8386,6 @@ async def test_ping_and_warm_routing_parameters_request_1_grpc_asyncio():
84118386

84128387
expected_headers = {
84138388
"name": "projects/sample1/instances/sample2",
8414-
"app_profile_id": "",
84158389
}
84168390
assert (
84178391
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -8476,7 +8450,6 @@ async def test_read_modify_write_row_routing_parameters_request_1_grpc_asyncio()
84768450

84778451
expected_headers = {
84788452
"table_name": "projects/sample1/instances/sample2/tables/sample3",
8479-
"app_profile_id": "",
84808453
}
84818454
assert (
84828455
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -8549,7 +8522,6 @@ async def test_read_modify_write_row_routing_parameters_request_3_grpc_asyncio()
85498522

85508523
expected_headers = {
85518524
"table_name": "projects/sample1/instances/sample2/tables/sample3",
8552-
"app_profile_id": "",
85538525
}
85548526
assert (
85558527
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -8586,7 +8558,6 @@ async def test_prepare_query_routing_parameters_request_1_grpc_asyncio():
85868558

85878559
expected_headers = {
85888560
"name": "projects/sample1/instances/sample2",
8589-
"app_profile_id": "",
85908561
}
85918562
assert (
85928563
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -8652,7 +8623,6 @@ async def test_execute_query_routing_parameters_request_1_grpc_asyncio():
86528623

86538624
expected_headers = {
86548625
"name": "projects/sample1/instances/sample2",
8655-
"app_profile_id": "",
86568626
}
86578627
assert (
86588628
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -10334,7 +10304,6 @@ def test_read_rows_routing_parameters_request_1_rest():
1033410304

1033510305
expected_headers = {
1033610306
"table_name": "projects/sample1/instances/sample2/tables/sample3",
10337-
"app_profile_id": "",
1033810307
}
1033910308
assert (
1034010309
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -10391,7 +10360,6 @@ def test_read_rows_routing_parameters_request_3_rest():
1039110360

1039210361
expected_headers = {
1039310362
"table_name": "projects/sample1/instances/sample2/tables/sample3",
10394-
"app_profile_id": "",
1039510363
}
1039610364
assert (
1039710365
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -10421,7 +10389,6 @@ def test_sample_row_keys_routing_parameters_request_1_rest():
1042110389

1042210390
expected_headers = {
1042310391
"table_name": "projects/sample1/instances/sample2/tables/sample3",
10424-
"app_profile_id": "",
1042510392
}
1042610393
assert (
1042710394
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -10478,7 +10445,6 @@ def test_sample_row_keys_routing_parameters_request_3_rest():
1047810445

1047910446
expected_headers = {
1048010447
"table_name": "projects/sample1/instances/sample2/tables/sample3",
10481-
"app_profile_id": "",
1048210448
}
1048310449
assert (
1048410450
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -10508,7 +10474,6 @@ def test_mutate_row_routing_parameters_request_1_rest():
1050810474

1050910475
expected_headers = {
1051010476
"table_name": "projects/sample1/instances/sample2/tables/sample3",
10511-
"app_profile_id": "",
1051210477
}
1051310478
assert (
1051410479
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -10565,7 +10530,6 @@ def test_mutate_row_routing_parameters_request_3_rest():
1056510530

1056610531
expected_headers = {
1056710532
"table_name": "projects/sample1/instances/sample2/tables/sample3",
10568-
"app_profile_id": "",
1056910533
}
1057010534
assert (
1057110535
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -10595,7 +10559,6 @@ def test_mutate_rows_routing_parameters_request_1_rest():
1059510559

1059610560
expected_headers = {
1059710561
"table_name": "projects/sample1/instances/sample2/tables/sample3",
10598-
"app_profile_id": "",
1059910562
}
1060010563
assert (
1060110564
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -10652,7 +10615,6 @@ def test_mutate_rows_routing_parameters_request_3_rest():
1065210615

1065310616
expected_headers = {
1065410617
"table_name": "projects/sample1/instances/sample2/tables/sample3",
10655-
"app_profile_id": "",
1065610618
}
1065710619
assert (
1065810620
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -10684,7 +10646,6 @@ def test_check_and_mutate_row_routing_parameters_request_1_rest():
1068410646

1068510647
expected_headers = {
1068610648
"table_name": "projects/sample1/instances/sample2/tables/sample3",
10687-
"app_profile_id": "",
1068810649
}
1068910650
assert (
1069010651
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -10745,7 +10706,6 @@ def test_check_and_mutate_row_routing_parameters_request_3_rest():
1074510706

1074610707
expected_headers = {
1074710708
"table_name": "projects/sample1/instances/sample2/tables/sample3",
10748-
"app_profile_id": "",
1074910709
}
1075010710
assert (
1075110711
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -10773,7 +10733,6 @@ def test_ping_and_warm_routing_parameters_request_1_rest():
1077310733

1077410734
expected_headers = {
1077510735
"name": "projects/sample1/instances/sample2",
10776-
"app_profile_id": "",
1077710736
}
1077810737
assert (
1077910738
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -10828,7 +10787,6 @@ def test_read_modify_write_row_routing_parameters_request_1_rest():
1082810787

1082910788
expected_headers = {
1083010789
"table_name": "projects/sample1/instances/sample2/tables/sample3",
10831-
"app_profile_id": "",
1083210790
}
1083310791
assert (
1083410792
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -10891,7 +10849,6 @@ def test_read_modify_write_row_routing_parameters_request_3_rest():
1089110849

1089210850
expected_headers = {
1089310851
"table_name": "projects/sample1/instances/sample2/tables/sample3",
10894-
"app_profile_id": "",
1089510852
}
1089610853
assert (
1089710854
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -10921,7 +10878,6 @@ def test_prepare_query_routing_parameters_request_1_rest():
1092110878

1092210879
expected_headers = {
1092310880
"name": "projects/sample1/instances/sample2",
10924-
"app_profile_id": "",
1092510881
}
1092610882
assert (
1092710883
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]
@@ -10974,7 +10930,6 @@ def test_execute_query_routing_parameters_request_1_rest():
1097410930

1097510931
expected_headers = {
1097610932
"name": "projects/sample1/instances/sample2",
10977-
"app_profile_id": "",
1097810933
}
1097910934
assert (
1098010935
gapic_v1.routing_header.to_grpc_metadata(expected_headers) in kw["metadata"]

0 commit comments

Comments
 (0)