SMQ-3028 - Unify SMQ certs with Absmach Certs (#3146)

Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
This commit is contained in:
Steve Munene
2025-10-01 12:08:33 +03:00
committed by GitHub
parent b031dc08b8
commit ae7c93020a
69 changed files with 850 additions and 7510 deletions
-16
View File
@@ -11,7 +11,6 @@ on:
- ".github/workflows/api-tests.yaml"
- "api/**"
- "auth/api/http/**"
- "certs/api/**"
- "channels/api/http/**"
- "clients/api/http/**"
- "domains/api/http/**"
@@ -33,7 +32,6 @@ env:
GROUPS_URL: http://localhost:9004
HTTP_ADAPTER_URL: http://localhost:8008
AUTH_URL: http://localhost:9001
CERTS_URL: http://localhost:9019
JOURNAL_URL: http://localhost:9021
jobs:
@@ -78,11 +76,6 @@ jobs:
- "apidocs/openapi/auth.yaml"
- "auth/api/http/**"
certs:
- ".github/workflows/api-tests.yaml"
- "apidocs/openapi/certs.yaml"
- "certs/api/**"
domains:
- ".github/workflows/api-tests.yaml"
- "apidocs/openapi/domains.yaml"
@@ -185,15 +178,6 @@ jobs:
checks: all
args: '--header "Authorization: Bearer ${{ env.USER_TOKEN }}" --suppress-health-check=filter_too_much --exclude-checks=positive_data_acceptance --phases=examples'
- name: Run Certs API tests
if: steps.changes.outputs.certs == 'true'
uses: schemathesis/action@v2.1.0
with:
schema: apidocs/openapi/certs.yaml
base-url: ${{ env.CERTS_URL }}
checks: all
args: '--header "Authorization: Bearer ${{ env.USER_TOKEN }}" --suppress-health-check=filter_too_much --exclude-checks=positive_data_acceptance --phases=examples'
- name: Stop containers
if: always()
run: make run down args="-v" && make run_addons down args="-v"
@@ -66,9 +66,6 @@ jobs:
- "pkg/groups/groups.go"
- "users/emailer.go"
- "users/hasher.go"
- "certs/certs.go"
- "certs/pki/openbao/openbao.go"
- "certs/service.go"
- "journal/journal.go"
- "consumers/notifier.go"
+11 -14
View File
@@ -23,6 +23,17 @@ jobs:
go-version: 1.25.x
cache-dependency-path: "go.sum"
- name: Fetch Certs
run: |
make fetch_certs
if [[ -n $(git status --porcelain docker/addons/certs) ]]; then
echo "Certs docker file is not up to date. Please update it"
git diff docker/addons/certs
exit 1
else
exit 0
fi
- name: Install protolint
run: |
go install github.com/yoheimuta/protolint/cmd/protolint@latest
@@ -84,14 +95,6 @@ jobs:
- "pkg/ulid/**"
- "pkg/uuid/**"
certs:
- "certs/**"
- "cmd/certs/**"
- "auth.pb.go"
- "auth_grpc.pb.go"
- "auth/**"
- "pkg/sdk/**"
channels:
- "channels/**"
- "cmd/channels/**"
@@ -203,7 +206,6 @@ jobs:
- "pkg/errors/**"
- "pkg/groups/**"
- "auth/**"
- "certs/**"
- "http/**"
- "internal/*"
- "clients/**"
@@ -260,11 +262,6 @@ jobs:
run: |
go test --race -v -count=1 -coverprofile=coverage/domains.out ./domains/...
- name: Run certs tests
if: steps.changes.outputs.certs == 'true' || steps.changes.outputs.workflow == 'true'
run: |
go test --race -v -count=1 -coverprofile=coverage/certs.out ./certs/...
- name: Run cli tests
if: steps.changes.outputs.cli == 'true' || steps.changes.outputs.workflow == 'true'
run: |