spotify / styx

"The path to execution", Styx is a service that schedules batch data processing jobs in Docker containers on Kubernetes.
Apache License 2.0
267 stars 50 forks source link

Lenient header matching #1091

Closed honnix closed 1 year ago

honnix commented 1 year ago

Hey, I just made a Pull Request!

Description

Matching headers as substring to handle cases we don't need to match full header name.

Motivation and Context

There are cases we cannot match full header name, so instead we check by substring match.

Have you tested this? If so, how?

I modified unit test to cover this change.

Checklist for PR author(s)

Checklist for PR reviewer(s)

codecov[bot] commented 1 year ago

Codecov Report

Merging #1091 (836a2b7) into master (0575e5b) will increase coverage by 0.04%. The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master    #1091      +/-   ##
============================================
+ Coverage     92.32%   92.37%   +0.04%     
  Complexity     2150     2150              
============================================
  Files           200      200              
  Lines          8323     8325       +2     
  Branches        503      503              
============================================
+ Hits           7684     7690       +6     
+ Misses          525      520       -5     
- Partials        114      115       +1