killgrave icon indicating copy to clipboard operation
killgrave copied to clipboard

Reuse path variable for bodyfile

Open eloo-abi opened this issue 1 year ago • 14 comments

Hi, this PR enables the usage of the variables defined in the imposters to be reused in the bodyFile path. So we can use "dynamic" responses for different paths easily. Fixes: #175

eloo-abi avatar Aug 19 '24 10:08 eloo-abi

Hey @eloo-abi! Thanks for your contribution 💟 However, before moving forward, I'd like to see some tests that show the expected behavior in different scenarios (e.g. no variables at all, a variable with a single value, a variable with multiple values, multiple variables, when a non-defined variable is used, etc).

joanlopez avatar Aug 21 '24 07:08 joanlopez

Hi,

no variables at all

this is covered by the existing tests already as the implementation is not going to change anything here

a variable with a single value

will be added

a variable with multiple values

not sure what this is, can you give an example of a variable with multiple values?

multiple variables

will be added

when a non-defined variable is used

it behaves like a wrong manually entered path as the implementation is not doing anything special, just adjust the path to search for a file

eloo-abi avatar Aug 21 '24 09:08 eloo-abi

Hi,

no variables at all

this is covered by the existing tests already as the implementation is not going to change anything here

a variable with a single value

will be added

a variable with multiple values

not sure what this is, can you give an example of a variable with multiple values?

multiple variables

will be added

when a non-defined variable is used

it behaves like a wrong manually entered path as the implementation is not doing anything special, just adjust the path to search for a file

Yes, please, ignore the case of multiple values for a single variable (I left a comment in the issue). Cover the rest, and we can go! 🚀

joanlopez avatar Aug 21 '24 09:08 joanlopez

tests added

i was not sure where or how to add to i have added it similar to other handler_tests i hope this makes sense

eloo-abi avatar Aug 21 '24 12:08 eloo-abi

@joanlopez hi, any news near? if everything fits your needs maybe we can merge this?

thanks

eloo-abi avatar Sep 12 '24 12:09 eloo-abi

@joanlopez hi, any news near? if everything fits your needs maybe we can merge this?

thanks

Hey @eloo-abi! Sorry for the delay, I've been quite busy during recent weeks. I left some comments and suggestions, I think that, once fixed, it will be good enough to be merged, for me.

Thanks! 🙇🏻

joanlopez avatar Sep 12 '24 15:09 joanlopez

@joanlopez everything should be addressed :)

eloo-abi avatar Sep 13 '24 10:09 eloo-abi

@joanlopez did you have already time to have a look?

eloo-abi avatar Sep 25 '24 06:09 eloo-abi

@joanlopez did you have already time to have a look?

Been AFK for some time during September, but planning to review it during October for sure! 🙇🏻

joanlopez avatar Oct 02 '24 09:10 joanlopez

@joanlopez if its not a blocker please merge this PR as it takes already a very long time for such a small change

eloo-abi avatar Oct 31 '24 11:10 eloo-abi

@joanlopez if its not a blocker please merge this PR as it takes already a very long time for such a small change

Yeah, sure! I'm waiting for @aperezg to give his 👍🏻, which I hope we get in the next few days, it's alright from my side! 🙇🏻

joanlopez avatar Nov 04 '24 09:11 joanlopez

@joanlopez @aperezg any updates here?

eloo-abi avatar Nov 29 '24 07:11 eloo-abi

@joanlopez @aperezg any updates here?

eloo-abi avatar Jan 08 '25 08:01 eloo-abi

any news here?

or is the project now officially dead?

eloo-abi avatar May 22 '25 12:05 eloo-abi