Update dependencies and enhance deployment scripts
Some checks failed
Go / build (push) Has been cancelled
Go / release (push) Has been cancelled

- Bumped versions of several dependencies in go.mod, including golang.org/x/crypto to v0.43.0 and golang.org/x/net to v0.46.0.
- Added new indirect dependencies for improved functionality.
- Removed outdated files: package.json, POLICY_TESTS_SUCCESS.md, and POLICY_TESTS_SUMMARY.md.
- Introduced a comprehensive deployment script for automated setup and configuration.
- Added testing scripts for deployment validation and policy system tests.
- Bumped version to v0.19.0.
This commit is contained in:
2025-10-24 21:03:44 +01:00
parent eaf8f584ed
commit 44d22a383e
16 changed files with 1257 additions and 430 deletions

53
scripts/test_policy.sh Executable file
View File

@@ -0,0 +1,53 @@
#!/bin/bash
# Policy System Test Runner
# This script runs all policy-related tests and benchmarks
set -e
echo "🧪 Running Policy System Tests"
echo "================================"
# Change to the project directory
cd "$(dirname "$0")"
# Run policy package tests
echo ""
echo "📦 Running Policy Package Tests..."
go test -v ./pkg/policy/... -run "Test.*" -timeout 30s
# Run policy integration tests
echo ""
echo "🔗 Running Policy Integration Tests..."
go test -v ./app/... -run "TestPolicy.*" -timeout 30s
# Run policy benchmarks
echo ""
echo "⚡ Running Policy Benchmarks..."
go test -v ./pkg/policy/... -run "Benchmark.*" -bench=. -benchmem -timeout 60s
# Run edge case tests
echo ""
echo "🔍 Running Edge Case Tests..."
go test -v ./pkg/policy/... -run "TestEdge.*" -timeout 30s
# Run race condition tests
echo ""
echo "🏃 Running Race Condition Tests..."
go test -v ./pkg/policy/... -race -timeout 30s
# Run coverage analysis
echo ""
echo "📊 Running Coverage Analysis..."
go test -v ./pkg/policy/... -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
echo "Coverage report generated: coverage.html"
# Check for any linting issues
echo ""
echo "🔍 Running Linter Checks..."
golangci-lint run ./pkg/policy/... || echo "Linter not available, skipping..."
echo ""
echo "✅ All Policy Tests Completed!"
echo "================================"