mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-14 10:34:06 +02:00
Remove backend UI (#4023)
# Description of Changes <!-- Please provide a summary of the changes, including: - What was changed - Why the change was made - Any challenges encountered Closes #(issue_number) --> --- ## Checklist ### General - [ ] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md) - [ ] I have read the [Stirling-PDF Developer Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/DeveloperGuide.md) (if applicable) - [ ] I have read the [How to add new languages to Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md) (if applicable) - [ ] I have performed a self-review of my own code - [ ] My changes generate no new warnings ### Documentation - [ ] I have updated relevant docs on [Stirling-PDF's doc repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/) (if functionality has heavily changed) - [ ] I have read the section [Add New Translation Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only) ### UI Changes (if applicable) - [ ] Screenshots or videos demonstrating the UI changes are attached (e.g., as comments or direct attachments in the PR) ### Testing (if applicable) - [ ] I have tested my changes locally. Refer to the [Testing Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/devGuide/DeveloperGuide.md#6-testing) for more details. --------- Co-authored-by: Copilot <[email protected]>
This commit is contained in:
co-authored by
Copilot
parent
20245c67e0
commit
768ece6921
+7
-30
@@ -185,23 +185,18 @@ verify_app_version() {
|
||||
|
||||
echo "Checking version for $service_name (expecting $EXPECTED_VERSION)..."
|
||||
|
||||
# Try to access the homepage and extract the version
|
||||
# Try to access the status endpoint and extract the version
|
||||
local response
|
||||
response=$(curl -s "$base_url")
|
||||
response=$(curl -s "$base_url/api/v1/info/status")
|
||||
|
||||
# Extract version from pixel tracking tag
|
||||
# Extract version from JSON response using grep and sed
|
||||
local actual_version
|
||||
actual_version=$(echo "$response" | grep -o 'appVersion=[0-9.]*' | head -1 | sed 's/appVersion=//')
|
||||
actual_version=$(echo "$response" | grep -o '"version":"[^"]*"' | head -1 | sed 's/"version":"//' | sed 's/"//')
|
||||
|
||||
# If we couldn't find the version in the pixel tag, try other approaches
|
||||
# Check if we got a valid response
|
||||
if [ -z "$actual_version" ]; then
|
||||
# Check for "App Version:" format
|
||||
if echo "$response" | grep -q "App Version:"; then
|
||||
actual_version=$(echo "$response" | grep -o "App Version: [0-9.]*" | sed 's/App Version: //')
|
||||
else
|
||||
echo "❌ Version verification failed: Could not find version information"
|
||||
return 1
|
||||
fi
|
||||
echo "❌ Version verification failed: Could not find version information in status endpoint"
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Check if the extracted version matches expected version
|
||||
@@ -278,15 +273,6 @@ main() {
|
||||
|
||||
# Test each configuration
|
||||
run_tests "Stirling-PDF-Ultra-Lite" "./testing/compose/docker-compose-ultra-lite.yml"
|
||||
|
||||
echo "Testing basic frontend homepage accessibility..."
|
||||
if curl -f http://localhost:3000 > /dev/null 2>&1; then
|
||||
passed_tests+=("Frontend-Homepage-Accessibility-lite")
|
||||
echo "Frontend homepage accessibility check passed"
|
||||
else
|
||||
failed_tests+=("Frontend-Homepage-Accessibility-lite")
|
||||
echo "Frontend homepage accessibility check failed"
|
||||
fi
|
||||
|
||||
# echo "Testing webpage accessibility..."
|
||||
# cd "testing"
|
||||
@@ -327,15 +313,6 @@ main() {
|
||||
|
||||
# Test each configuration with security
|
||||
run_tests "Stirling-PDF-Security" "./testing/compose/docker-compose-security.yml"
|
||||
|
||||
echo "Testing basic frontend homepage accessibility..."
|
||||
if curl -f http://localhost:3000 > /dev/null 2>&1; then
|
||||
passed_tests+=("Frontend-Homepage-Accessibility-full")
|
||||
echo "Frontend homepage accessibility check passed"
|
||||
else
|
||||
failed_tests+=("Frontend-Homepage-Accessibility-full")
|
||||
echo "Frontend homepage accessibility check failed"
|
||||
fi
|
||||
|
||||
# echo "Testing webpage accessibility..."
|
||||
# cd "testing"
|
||||
|
||||
Reference in New Issue
Block a user