@@ -2083,101 +2083,101 @@ def test_reservation_service_grpc_transport_channel_mtls_with_adc(
2083
2083
assert transport .grpc_channel == mock_grpc_channel
2084
2084
2085
2085
2086
- def test_assignment_path ():
2086
+ def test_capacity_commitment_path ():
2087
2087
project = "squid"
2088
2088
location = "clam"
2089
- reservation = "whelk"
2090
- assignment = "octopus"
2089
+ capacity_commitment = "whelk"
2091
2090
2092
- expected = "projects/{project}/locations/{location}/reservations/{reservation}/assignments/{assignment}" .format (
2093
- project = project ,
2094
- location = location ,
2095
- reservation = reservation ,
2096
- assignment = assignment ,
2091
+ expected = "projects/{project}/locations/{location}/capacityCommitments/{capacity_commitment}" .format (
2092
+ project = project , location = location , capacity_commitment = capacity_commitment
2097
2093
)
2098
- actual = ReservationServiceClient .assignment_path (
2099
- project , location , reservation , assignment
2094
+ actual = ReservationServiceClient .capacity_commitment_path (
2095
+ project , location , capacity_commitment
2100
2096
)
2101
2097
assert expected == actual
2102
2098
2103
2099
2104
- def test_parse_assignment_path ():
2100
+ def test_parse_capacity_commitment_path ():
2105
2101
expected = {
2106
- "project" : "oyster" ,
2107
- "location" : "nudibranch" ,
2108
- "reservation" : "cuttlefish" ,
2109
- "assignment" : "mussel" ,
2102
+ "project" : "octopus" ,
2103
+ "location" : "oyster" ,
2104
+ "capacity_commitment" : "nudibranch" ,
2110
2105
}
2111
- path = ReservationServiceClient .assignment_path (** expected )
2106
+ path = ReservationServiceClient .capacity_commitment_path (** expected )
2112
2107
2113
2108
# Check that the path construction is reversible.
2114
- actual = ReservationServiceClient .parse_assignment_path (path )
2109
+ actual = ReservationServiceClient .parse_capacity_commitment_path (path )
2115
2110
assert expected == actual
2116
2111
2117
2112
2118
- def test_reservation_path ():
2113
+ def test_bi_reservation_path ():
2119
2114
project = "squid"
2120
2115
location = "clam"
2121
- reservation = "whelk"
2122
2116
2123
- expected = "projects/{project}/locations/{location}/reservations/{reservation} " .format (
2124
- project = project , location = location , reservation = reservation
2117
+ expected = "projects/{project}/locations/{location}/bireservation " .format (
2118
+ project = project , location = location
2125
2119
)
2126
- actual = ReservationServiceClient .reservation_path (project , location , reservation )
2120
+ actual = ReservationServiceClient .bi_reservation_path (project , location )
2127
2121
assert expected == actual
2128
2122
2129
2123
2130
- def test_parse_reservation_path ():
2131
- expected = {"project" : "octopus " , "location" : "oyster" , "reservation" : "nudibranch " }
2132
- path = ReservationServiceClient .reservation_path (** expected )
2124
+ def test_parse_bi_reservation_path ():
2125
+ expected = {"project" : "whelk " , "location" : "octopus " }
2126
+ path = ReservationServiceClient .bi_reservation_path (** expected )
2133
2127
2134
2128
# Check that the path construction is reversible.
2135
- actual = ReservationServiceClient .parse_reservation_path (path )
2129
+ actual = ReservationServiceClient .parse_bi_reservation_path (path )
2136
2130
assert expected == actual
2137
2131
2138
2132
2139
- def test_capacity_commitment_path ():
2133
+ def test_reservation_path ():
2140
2134
project = "squid"
2141
2135
location = "clam"
2142
- capacity_commitment = "whelk"
2136
+ reservation = "whelk"
2143
2137
2144
- expected = "projects/{project}/locations/{location}/capacityCommitments/{capacity_commitment}" .format (
2145
- project = project , location = location , capacity_commitment = capacity_commitment
2146
- )
2147
- actual = ReservationServiceClient .capacity_commitment_path (
2148
- project , location , capacity_commitment
2138
+ expected = "projects/{project}/locations/{location}/reservations/{reservation}" .format (
2139
+ project = project , location = location , reservation = reservation
2149
2140
)
2141
+ actual = ReservationServiceClient .reservation_path (project , location , reservation )
2150
2142
assert expected == actual
2151
2143
2152
2144
2153
- def test_parse_capacity_commitment_path ():
2154
- expected = {
2155
- "project" : "octopus" ,
2156
- "location" : "oyster" ,
2157
- "capacity_commitment" : "nudibranch" ,
2158
- }
2159
- path = ReservationServiceClient .capacity_commitment_path (** expected )
2145
+ def test_parse_reservation_path ():
2146
+ expected = {"project" : "octopus" , "location" : "oyster" , "reservation" : "nudibranch" }
2147
+ path = ReservationServiceClient .reservation_path (** expected )
2160
2148
2161
2149
# Check that the path construction is reversible.
2162
- actual = ReservationServiceClient .parse_capacity_commitment_path (path )
2150
+ actual = ReservationServiceClient .parse_reservation_path (path )
2163
2151
assert expected == actual
2164
2152
2165
2153
2166
- def test_bi_reservation_path ():
2154
+ def test_assignment_path ():
2167
2155
project = "squid"
2168
2156
location = "clam"
2157
+ reservation = "whelk"
2158
+ assignment = "octopus"
2169
2159
2170
- expected = "projects/{project}/locations/{location}/bireservation" .format (
2171
- project = project , location = location
2160
+ expected = "projects/{project}/locations/{location}/reservations/{reservation}/assignments/{assignment}" .format (
2161
+ project = project ,
2162
+ location = location ,
2163
+ reservation = reservation ,
2164
+ assignment = assignment ,
2165
+ )
2166
+ actual = ReservationServiceClient .assignment_path (
2167
+ project , location , reservation , assignment
2172
2168
)
2173
- actual = ReservationServiceClient .bi_reservation_path (project , location )
2174
2169
assert expected == actual
2175
2170
2176
2171
2177
- def test_parse_bi_reservation_path ():
2178
- expected = {"project" : "whelk" , "location" : "octopus" }
2179
- path = ReservationServiceClient .bi_reservation_path (** expected )
2172
+ def test_parse_assignment_path ():
2173
+ expected = {
2174
+ "project" : "oyster" ,
2175
+ "location" : "nudibranch" ,
2176
+ "reservation" : "cuttlefish" ,
2177
+ "assignment" : "mussel" ,
2178
+ }
2179
+ path = ReservationServiceClient .assignment_path (** expected )
2180
2180
2181
2181
# Check that the path construction is reversible.
2182
- actual = ReservationServiceClient .parse_bi_reservation_path (path )
2182
+ actual = ReservationServiceClient .parse_assignment_path (path )
2183
2183
assert expected == actual
0 commit comments