Refactor simple-ca: Remove JSON config and streamline AIA URL handling
- Removed the JSON configuration structure and related functions. - Introduced plain text file for AIA base URL management. - Updated CA and certificate creation functions to directly read/write AIA URL. - Simplified CA bundle rebuilding logic by directly reading subdirectories. - Enhanced test coverage for CA and certificate creation, including PFX generation. - Adjusted test cases to reflect changes in directory structure and file handling.
This commit is contained in:
@@ -5,6 +5,7 @@ on:
|
||||
- 'simple-ca.py'
|
||||
- 'run-tests.sh'
|
||||
- 'test_simple_ca.py'
|
||||
- 'src/simple-ca/**'
|
||||
- '.gitea/workflows/test.yaml'
|
||||
|
||||
jobs:
|
||||
@@ -33,3 +34,18 @@ jobs:
|
||||
|
||||
- name: Run shell tests
|
||||
run: bash run-tests.sh
|
||||
|
||||
test-go:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: stable
|
||||
|
||||
- name: Run Go tests
|
||||
run: go test -v ./...
|
||||
working-directory: src/simple-ca
|
||||
|
||||
Reference in New Issue
Block a user