oms smoketest codesphere
Generated from OMS version v2.113.0.
Run smoke tests for a Codesphere installation
Synopsis
Run automated smoke tests for a Codesphere installation by creating a workspace, setting environment variables, executing commands, syncing landscape, and running a pipeline stage. The workspace is automatically deleted after the test completes.
oms smoketest codesphere [flags]
Examples
# Run smoke tests against a Codesphere installation
$ oms smoketest codesphere --baseurl https://codesphere.example.com/api --token YOUR_TOKEN
# Run smoke tests against a specific team within your Codesphere installation
$ oms smoketest codesphere --baseurl https://codesphere.example.com/api --token YOUR_TOKEN --team-id TEAM_ID
# Run smoke tests against a specific team within your Codesphere installation, using a specific workspace plan
$ oms smoketest codesphere --baseurl https://codesphere.example.com/api --token YOUR_TOKEN --team-id TEAM_ID --plan-id PLAN_ID
# Run smoke tests with custom timeout
$ oms smoketest codesphere --baseurl https://codesphere.example.com/api --token YOUR_TOKEN --timeout 15m
# Run only specific steps of the smoke test (workspace won't be deleted)
$ oms smoketest codesphere --baseurl https://codesphere.example.com/api --token YOUR_TOKEN --steps createWorkspace,syncLandscape
# Run specific steps and delete the workspace afterwards
$ oms smoketest codesphere --baseurl https://codesphere.example.com/api --token YOUR_TOKEN --steps createWorkspace,syncLandscape,deleteWorkspace
Options
--baseurl string Base URL of the Codesphere API
-h, --help help for codesphere
--plan-id string Plan ID for workspace creation
--profile string CI profile to use for landscape and pipeline (default "ci.yml")
--steps strings Comma-separated list of steps to run (createWorkspace,setEnvVar,createFiles,syncLandscape,executeRunStage,deleteWorkspace). If empty, all steps including deleteWorkspace are run. If specified without deleteWorkspace, the workspace will be kept for manual inspection.
--team-id string Team ID for workspace creation
--timeout duration Timeout for the entire smoke test (default 10m0s)
--token string API token for authentication
Options inherited from parent commands
--verbose Enable verbose output
SEE ALSO
- oms smoketest - Run smoke tests for Codesphere components