8000 API call to run a single command in a workspace for integration testing · Issue #16053 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content
API call to run a single command in a workspace for integration testing #16053
@stirby

Description

@stirby

We currently provide a simple guide on testing templates via CI/CD. We advise that our customers use a GitHub repo to version control their templates and validate changes with Terraform before promoting a new version.

However, terraform validate is a relatively loose check for environment changes and won't always catch regressions. Template administrators often manually validate changes by simply creating a workspace and running one or two commonly used commands for the target template.

There is no simple way to do this programmatically with our API. An enterprise customer has requested that we add an endpoint to run a single command in a workspace and return its exit code. This would allow customers to run any number of test cases automatically before publishing a new template version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiArea: HTTP APIcustomer-requestedFeatures requested by enterprise customers. Only humans may set this.needs-triageIssue that require triage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0