Python PathTraversal.py

Hi all, I am just working through Play - SecDim

After pushing the code with the included security fixes I receive this error:

Test Started...

clone

- Getting the environment ready

Init

- + sh ./init.sh

- [i] Getting the player repository

- [i] Setting up the environment

- cp: can't stat './src/test_usability.py': No such file or directory

- cp: can't stat './src/test_security.py': No such file or directory

-
Test

Test Failed

Testing locally works fine, could someone please take a look into this? Or should I go back to the drawing board with my fix :joy:

Thanks Matt.

It is possibly just a mistyped file path, should be:

./src/program/test_usability.py
./src/program/test_security.py

Hey Matt, Good catch. Pushed the fix, the Test should be working as intended now. Hopefully you won’t have to start from square one for your fix :sweat_smile:

1 Like

Hi Hamza, just trying to push my fix again now and I don’t think the test is functioning correctly. This is the output I am receiving:

Test Started...

clone

- Getting the environment ready

Init

- + sh ./init.sh

- [i] Getting the player repository

- [i] Setting up the environment

- [i] Environment is ready for testing

-
Test

Test Failed

When the ‘init.sh’ process reaches this line: - [i] Environment is ready for testing
It appears to hang indefinitely, after exiting the Test window and checking the commit history it shows ‘Pending’ as the Attempt.

Clicking back into it is when I can see Test & Test Failed with no other output in regards to what failed. Could you please take another look, just to confirm?
Thanks Matt

Hey @Matt, thanks for your patience. there was an issue with the test on the server. It is now fixed. Please try again. If you observe any problem, please let us know.

1 Like

Hi Pedram, I just pushed again and the testing process completed successfully!
All issues appear to be resolved and testing is working as expected.
Thanks Hamza and Pedram!

- [i] Running tests is completed.
1 Like