StackStorm / StackStorm/st2

Unit Tests for Actions in `packs` pack

Open
#3,057 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue tests
Dominant language
Python
Stars
6.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

Following the ChatOps Aliases Tests, write Pack Unit Tests for packs Actions (https://github.com/StackStorm/st2/pull/2982):

See: https://github.com/StackStorm/st2/tree/master/contrib/packs/actions

  • packs.delete
  • packs.download
  • packs.get
  • packs.get_config
  • packs.load
  • packs.search
  • packs.setup_virtualenv
  • packs.show
  • packs.unload
  • packs.update_virtualenv
  • packs.virtualenv_prerun

Not going to do tests for these:
* [ ] packs.restart_component (it's just a local-shell-cmd)
* [ ] packs.uninstall - it's a chain calling delete/unload
* [ ] packs.install it's a chain calling download/virtualenv_prerun/setup_virtualenv/load

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the pack unit-testing guide and the existing tests for completed actions in contrib/packs/actions. Add coverage for packs.load, packs.setup_virtualenv, packs.update_virtualenv, and packs.virtualenv_prerun, then run the relevant pack test suite and confirm those unchecked actions are covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops, testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.