Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Leong <[email protected]>
  • Loading branch information
adleong committed Feb 25, 2025
1 parent 2a0741d commit 0b2b97a
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions policy-test/tests/outbound_api_http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ async fn gateway_http_route_with_filters_service() {
gateway::HTTPRoute::make_route(ns, vec![parent.obj_ref()], vec![vec![]]);
for rule in route.spec.rules.iter_mut().flatten() {
rule.matches = Some(vec![gateway::HTTPRouteRulesMatches {
path: Some(k8s_gateway_api::HttpPathMatch::PathPrefix {
value: "/foo".to_string(),
path: Some(gateway::HTTPRouteRulesMatchesPath {
value: Some("/foo".to_string()),
r#type: Some(gateway::HTTPRouteRulesMatchesPathType::PathPrefix),
}),
..Default::default()
}]);
Expand Down Expand Up @@ -196,8 +197,9 @@ async fn policy_http_route_with_filters_service() {
);
for rule in route.spec.rules.iter_mut().flatten() {
rule.matches = Some(vec![gateway::HTTPRouteRulesMatches {
path: Some(k8s_gateway_api::HttpPathMatch::PathPrefix {
value: "/foo".to_string(),
path: Some(gateway::HTTPRouteRulesMatchesPath {
value: Some("/foo".to_string()),
r#type: Some(gateway::HTTPRouteRulesMatchesPathType::PathPrefix),
}),
..Default::default()
}]);
Expand Down Expand Up @@ -349,8 +351,9 @@ async fn gateway_http_route_with_backend_filters() {
);
for rule in route.spec.rules.iter_mut().flatten() {
rule.matches = Some(vec![gateway::HTTPRouteRulesMatches {
path: Some(k8s_gateway_api::HttpPathMatch::PathPrefix {
value: "/foo".to_string(),
path: Some(gateway::HTTPRouteRulesMatchesPath {
value: Some("/foo".to_string()),
r#type: Some(gateway::HTTPRouteRulesMatchesPathType::PathPrefix),
}),
..Default::default()
}]);
Expand Down Expand Up @@ -508,8 +511,9 @@ async fn policy_http_route_with_backend_filters() {
);
for rule in route.spec.rules.iter_mut().flatten() {
rule.matches = Some(vec![gateway::HTTPRouteRulesMatches {
path: Some(k8s_gateway_api::HttpPathMatch::PathPrefix {
value: "/foo".to_string(),
path: Some(gateway::HTTPRouteRulesMatchesPath {
value: Some("/foo".to_string()),
r#type: Some(gateway::HTTPRouteRulesMatchesPathType::PathPrefix),
}),
..Default::default()
}]);
Expand Down

0 comments on commit 0b2b97a

Please sign in to comment.