Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CLI Deploy Tests #926

Merged
merged 15 commits into from
Jan 31, 2024
Merged

Add CLI Deploy Tests #926

merged 15 commits into from
Jan 31, 2024

Conversation

kgartland-rstudio
Copy link
Collaborator

Intent

This PR supplants #816. Much of it is similar but we now use the connect-content repo for all our testing content. When testing locally, we assume the location of ${HOME}/work/connect-content (because that's where my repo is and I'll probably do the majority of local testing). However you can also set CONTENT_REPO to your own path.

Type of Change

    • Bug Fix
    • New Feature
    • Breaking Change
    • Documentation
    • Refactor
    • Tooling

Approach

it scans the connect-content bundles directory for any folder that has a test/.publisher-env file and if found, it deploys the content and run the tests in bats/contract/deploy.bats. The .publisher-env files is where I store variables to assert against, currently it only contains the expected content type of the content.

Automated Tests

these are them.

Directions for Reviewers

tests are passing
https://github.com/posit-dev/publisher/actions/runs/7728709804/job/21070355985, you can review all the content being deployed/redeployed in the Run just bats test-contract step.

Checklist

@kgartland-rstudio kgartland-rstudio changed the title Kg redux deploy all Add CLI Deploy Tests Jan 31, 2024
test/bats/contract/deploy.bats Outdated Show resolved Hide resolved
test/bats/contract/deploy.bats Outdated Show resolved Hide resolved
test/bats/contract/deploy.bats Outdated Show resolved Hide resolved
test/deploy_helper.py Outdated Show resolved Hide resolved
test/bats/justfile Outdated Show resolved Hide resolved
@kgartland-rstudio kgartland-rstudio merged commit 6556261 into main Jan 31, 2024
43 of 44 checks passed
@kgartland-rstudio kgartland-rstudio deleted the kg-redux-deploy-all branch January 31, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants