-
Story
-
Resolution: Done
-
Major
-
None
-
None
Owner: Architect:
Francesco Ilario
Story (Required)
As a Primaza Developer, I would like to have BDD tests using primazactl to setup clusters so that I can test real case scenarios.
Background (Required)
As described in Primaza's architecture document, primazactl is a simple Command Line Application for Primaza Administrator.
The tool will help Primaza Administrators installing Primaza on a cluster and configuring Worker clusters.
See epic for architecture document link.
Glossary
See glossary in architecture document
Out of scope
- versioning
In Scope
- Update BDD Tests
Approach(Required)
Update the BDD tests to rely on primazactl. Remove all the logic for Primaza and Worker cluster configuration from tests, and use instead primazactl commands.
In tests you can assume primazactl is installed in the system.
We need to have a make target to install primazactl as a local dependency. The test-acceptance target should depend on the primazactl installing target.
Make's test-acceptance target have to check for existence of a input variable, named for example PRIMAZACTL_COMMAND, that may be used to provide the command to execute primazactl. In this case it should not install primazactl as a dependency, but use the provided command. That may be needed to test if a local development on primazactl itself breaks primaza's acceptance tests.
Demo requirements(Required)
NA
Dependencies
- Define primazactl
- primazactl: worker cluster setup
Edge Case
NA
Acceptance Criteria
- Development
- QE
There is a Makefile rule to install primazactl locally.
The test-acceptance make target is updated to install primazactl before running.
The test-acceptance make target permits to specify primazactl command for using a user-defined path for primazactl
Test cases are updated to work with primazactl.
- Docs
INVEST Checklist
Dependencies identified
Blockers noted and expected delivery timelines set
Design is implementable
Acceptance criteria agreed upon
Story estimated
Legend
Unknown
Verified
Unsatisfied
- depends on
-
APPSVC-1280 Define primazactl
- Closed
-
APPSVC-1284 primazactl: worker cluster setup
- Closed