-
Notifications
You must be signed in to change notification settings - Fork 32
The test case called "ImageTest.RemoteMetadata" passes the test even when the udf_server doesn't execute the request #240
Description
Describe the bug
The test case called "ImageTest.RemoteMetadata" passes the test even when the udf_server.py doesn't run successfully
To Reproduce
Steps to reproduce the behavior:
-
Open the udf_server.py file located at tests/remote_function_test directory.
-
Edit the file and add an invalid module name to be imported.
For example add the line "import blahblah" in the first line of the file.

-
Add the following line to the same file, specifically in the first line of the image_api() function:
print("This message should be displayed in the log file", file=sys.stderr)- Save that file.
- Go to the tests directory.
- Run the following command:
./run_tests.sh -n ImageTest.RemoteMetadata- Verify the test passed. However, an error message is displayed on the screen:
Remote server is not running.
-
Open the file called "tests/tests_remote_log.log".
-
Verify that there is an error message in that log saying "ModuleNotFoundError: No module named 'blahblah'".

-
Verify that the request was not executed by udf_server server by checking that it is not logged the message added in the step 3 ("This message should be displayed in the log file") in that log file.
-
Verify that the test is passing even when it should fail due to the error mentioned in the step 9.
Expected behavior
The test should fail.

