-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Scala][Gatling] correct body params filename #7635
[Scala][Gatling] correct body params filename #7635
Conversation
@atomfrede thanks for the PR. cc @andavis84 for review. |
@wing328 The sample files are supposed to be commited too, right? |
Is this issue platform it environment specific? Like would the previous work only on Windows, or in shells with opts enabled for case insensitive filename matching? I agree with the fix, just wondering why it would work for some and not others. |
I stumbled across that using linux, didn't tried it on windows. |
I was wondering because I ran the original in my old Mac with HFS+ filesystem. My new Mac is APFS, which I believe is also case insensitive but case preserving. I've had issues with changing filename casing for files stored in git, but never had case issues with tools like this. When I have a chance this weekend, I'll run again locally and then within an Alpine docker image with Scala and report back here if I find differences. It would be a good point for reviewers to double check filename case sensitivity. |
I tested this out a bit, and I couldn't reproduce the behavior I remembered seeing from my review of the initial generator. I ran each time with So I looked at how Gatling defines a classpath resource:
And I tested this logic locally with a file under resources and named in all lowercase as
Which is expected on the case insensitive APFS variant file system. I'm wondering if it's possible that I ran gatling via gradle in some way that used file based resolution rather than classpath? I'm not that familiar with Gatling to even recall how I ran it previously. I tested this out using a
Obviously this is to be expected because my file system is case insensitive. It's just somewhat weird that in Gatling I could potentially succeed on a case insensitive file system in one path of execution but fail when the same file is loaded via classpath. Anyway, the fix in this PR is obviously the way to go for consistency. |
PR checklist
./bin/
to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.sh
and./bin/security/{LANG}-petstore.sh
if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\
.3.0.0
branch for changes related to OpenAPI spec 3.0. Default:master
.@clasnake @jimschubert @shijinkui
Description of the PR
The
-BodyParams.csv
file must be named-bodyParams.csv
as that file is used in the gatling test defnition. Futhermore all other files are also using lowercase names (e.g.-headerParams.csv
).close #7616