Skip to content

CLI create project --manager creates a manager module #1410

@techcobweb

Description

@techcobweb

Story

As a galasa testcase developer I want to use the galasa CLI to create a new project of an example manager, and an extra test class which uses that manager, and an entry in the OBR which refers to that manager

Background

This would be a good feature to then go on and talk about the manager in the docs.

galasactl project create --manager ... would create a manager.

The manager name could optionally be gathered from the CLI syntax. For example with a --managerName xxx parameter. Then we can use that to name the project folder, and manager annotation...etc.

We already have the --package <java-package> parameter for the base package, and bundle.

We should create the new bundle with the manager inside called xxx.manager

What does the manager code actually do ?

  • Create an annotation, which can inject a custom object into the testcase.
  • Support the cleanup and other lifecycle methods.

I suggest we look at the docker manager for the best example we have. Some of our existing managers are not written anywhere near that.

Tasks

  • Finalise syntax of the CLI (text in this story),
  • Arrange a review of the proposed syntax
  • Add the new parameters to the CLI
  • Generate the new manager project + unit tests
  • Review of the generated code output by the tool
  • OBR generated adds the manager project
  • Manager is a skeleton but does something useful but with no further dependencies
  • Test to generate the manager using the tool added to .build-locally.sh + it builds
  • Docs updated in the README.md file with syntax
  • Docs explaining what got generated, and why you might like to do so (@CaroMac can help with this if the readme and this story have enough detail)

Metadata

Metadata

Labels

OMP Summer MentorshipThese stories are set aside for the mentee to complete as part of the OMP Summer MentorshipcliGalasa CLIdocumentationImprovements or additions to documentationgood first issueGood for newcomers

Type

No type

Projects

Status

📋 5 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions