Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion devrev-snapin-template.plain
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
- The Normalization Function is a function that is responsible for normalizing the data from The API to the data expected by The External Domain Metadata JSON object's record type.

- The Extraction Function is The Function named "extraction". It is responsible for pushing data to the DevRev servers (The DevRev Servers) based on various event types.
- "event_type" equals "EXTRACTION_DATA_START" or "event_type" equals "EXTRACTION_DATA_CONTINUE" and we get a timeout, The Worker Thread should emit event "EXTRACTION_DATA_PROGRESS".

***Non-Functional Requirements:***

Expand Down
324 changes: 0 additions & 324 deletions rate_limiting_proxy.py

This file was deleted.

13 changes: 12 additions & 1 deletion run_devrev_snapin_conformance_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ start_mock_devrev_server() {
}

start_proxy_server() {
python3 "$SCRIPT_DIR/rate_limiting_proxy.py" > "$PROXY_SERVER_LOG" 2>&1 &
# Check if the rate limiting proxy file exists
if [ ! -f "$EXEC_DIR/rate_limiting_proxy.py" ]; then
printf "Error: rate_limiting_proxy.py file not found in $EXEC_DIR/rate_limiting_proxy.py. This file should exist (and should be adopted for 3rd party service's rate limiting response format).\n"
exit 69
fi
python3 "$EXEC_DIR/rate_limiting_proxy.py" > "$PROXY_SERVER_LOG" 2>&1 &
PROXY_SERVER_PID=$!
sleep 2 # Give the server time to start

Expand Down Expand Up @@ -201,6 +206,12 @@ if [ -z "$EXTRACTED_FILES_FOLDER_PATH" ]; then
exit 69 # EXIT_SERVICE_UNAVAILABLE
fi

# Check if EXTRACTED_FILES_FOLDER_PATH does not end with "node_$1/build"
if [[ "$EXTRACTED_FILES_FOLDER_PATH" != *"node_$1/extracted_files" ]]; then
echo "Error: EXTRACTED_FILES_FOLDER_PATH should end with 'node_$1/extracted_files'."
echo "Note: The value of EXTRACTED_FILES_FOLDER_PATH should be <path_to_directory_where_you_rendered_the_snap-in>/node_$1/extracted_files."
exit 69 # EXIT_SERVICE_UNAVAILABLE
fi

# Check if build folder name is provided
if [ -z "$1" ]; then
Expand Down