auth
FreeAuthentication and authorization patterns for Rossoctl services
The English summary is being prepared. Showing the original description.
Add test infrastructure and initial test coverage to a target repo
The English summary is being prepared. Showing the original description.
Run score Not tested
See how to installReview the instructions the agent will receive before you install.
flowchart TD
START(["/orchestrate:tests"]) --> READ["Read plan"]:::orch
READ --> DETECT["Detect test framework"]:::orch
DETECT --> CONFIG["Create test config"]:::orch
CONFIG --> CRITICAL["Identify critical paths"]:::orch
CRITICAL --> WRITE["Write initial tests"]:::orch
WRITE --> BRANCH["Create branch"]:::orch
BRANCH --> SIZE{Under 700 lines?}
SIZE -->|Yes| PR["Commit + open PR"]:::orch
SIZE -->|No| SPLIT["Split into sub-PRs"]:::orch
SPLIT --> PR
PR --> DONE([Phase complete])
classDef orch fill:#FF9800,stroke:#333,color:white
Follow this diagram as the workflow.
Add test infrastructure and initial test coverage. This is Phase 3 and produces PR #2. Tests come before CI and security — good test coverage is a safety net for the code refactoring that security/quality fixes require.
orchestrate:plan identifies tests as a needed phase.repos/<target>/| Marker | Language | Framework | Assertion |
|---|---|---|---|
pyproject.toml | Python | pytest | built-in assert |
go.mod | Go | testing (stdlib) | testify |
package.json | Node | jest or vitest | built-in expect |
requirements.yml | Ansible | molecule | testinfra |
Check existing tests:
find .repos/<target> -type f \( -name "test_*.py" -o -name "*_test.go" -o -name "*.test.*" \) 2>/dev/null
tests/conftest.py — shared fixturestests/__init__.py — package markerpyproject.toml — add [tool.pytest.ini_options] with testpaths = ["tests"]*_test.go files alongside sourcetestdata/ for fixturesinternal/testutil/ for shared helpersjest.config.ts or vitest.config.ts at root__tests__/ directory or *.test.ts alongside sourcemolecule/default/ with molecule.yml, converge.yml, verify.ymlFrom the scan report, find highest-impact areas:
Prioritize smoke tests across areas over exhaustive coverage of one area.
| Language | Convention | Example |
|---|---|---|
| Python | test_<what>_<condition> | test_create_user_returns_201 |
| Go | Test<What><Condition> | TestCreateUserReturns201 |
| Node | describe/it blocks | it('returns 201 when creating user') |
git -C .repos/<target> checkout -b orchestrate/tests
git -C .repos/<target> diff --stat | tail -1
If over 700 lines, split: framework setup in PR #3a, tests in PR #3b.
test:write — guide for writing new teststdd:ci — workflow for iterating on CI test failuresgit -C .repos/<target> add -A
git -C .repos/<target> commit -s -m "feat: add test infrastructure and initial test coverage"
git -C .repos/<target> push -u origin orchestrate/tests
Set tests to complete in phase-status.md.
orchestrate — Parent routerorchestrate:precommit — Previous phase (linting foundation)orchestrate:plan — Defines test phase tasksorchestrate:ci — Next phase (automates running these tests)test:write — Detailed test writing guidetdd:ci — CI-driven TDD workflowNo reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
Authentication and authorization patterns for Rossoctl services
The English summary is being prepared. Showing the original description.
Create confidential OAuth2 clients in Keycloak for server-to-service authentication
The English summary is being prepared. Showing the original description.
Configure MLflow with mlflow-oidc-auth plugin for Keycloak OIDC authentication
The English summary is being prepared. Showing the original description.
Configure OpenTelemetry Collector with OAuth2 authentication for trace export
The English summary is being prepared. Showing the original description.
CI pipeline monitoring, status checks, and PR validation workflows
The English summary is being prepared. Showing the original description.
Monitor running CI jobs, wait for completion, create tasks for results
The English summary is being prepared. Showing the original description.