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

Distribute Robot checks with CheckMK Agent bakery #11

Closed
simonmeggle opened this issue Jan 31, 2020 · 8 comments
Closed

Distribute Robot checks with CheckMK Agent bakery #11

simonmeggle opened this issue Jan 31, 2020 · 8 comments
Assignees
Labels
c:agent component: Agent (py) c:bakery component: bakery c:wato component: WATO rules p:medium Priority: medium t:feature Type: new feature
Projects
Milestone

Comments

@simonmeggle
Copy link
Collaborator

No description provided.

@simonmeggle simonmeggle added t:feature Type: new feature p:medium Priority: medium c:wato component: WATO rules c:agent component: Agent (py) C:FA labels Jan 31, 2020
@simonmeggle simonmeggle added this to the v0.1 milestone Jan 31, 2020
@simonmeggle simonmeggle added this to To do in robotmk via automation Jan 31, 2020
@simonmeggle simonmeggle moved this from To do to In progress in robotmk Jun 4, 2020
@simonmeggle simonmeggle self-assigned this Jun 4, 2020
@simonmeggle
Copy link
Collaborator Author

WIP in branch bakery

@simonmeggle
Copy link
Collaborator Author

simonmeggle commented Jun 5, 2020

Proposal for Robot arguments which should be supported in the bakery rule and the agent plugin:

Must-be:

  • --name: Set the name of the top level suite. Overrides auto naming from top level dir or robot file.
  • --suite: Select suites by name pattern
  • --test: Select tests by name pattern
  • --include: Select tests by tag pattern (exists already -> rename)
  • --exclude: Exclude tests by tag pattern
  • --variablefile: Load variables from file
  • --exitonfailure=True: lets RF exit the whole suite if one test failed. (default is to execute all tests)

Optional:

  • --critical/--noncritical - pattern which tests are considered critical = can raise exceptions.

@simonmeggle
Copy link
Collaborator Author

#27 describes how the bakery could clone the test repository and bake the test files into the agent.

@mike1098
Copy link

mike1098 commented Jun 6, 2020

This is done with agent bakery rule "Deploy custom files with agent". Tested and works.

@simonmeggle
Copy link
Collaborator Author

What I wanted to remark is the possibility to include a version controlled test dir. For now it is ok to deliver the files with the existent bakery rule you mentioned.

@simonmeggle simonmeggle added the c:bakery component: bakery label Jun 16, 2020
@simonmeggle
Copy link
Collaborator Author

@guillaume-durville : argumentfile is not a valid parameter when calling robot via python. I just have seen this.
Options that do not take an argument (like exitonfailure) are given as boolean parameters: exitonfailure=True

@simonmeggle
Copy link
Collaborator Author

I have now written tests for the agent plugin and almost each possible robot argument (see above).
For reference, you can inspect the robotmk.yml files for each test/argument in https://github.com/simonmeggle/robotmk/tree/agentplugin/test/fixtures/plugin.

@simonmeggle simonmeggle moved this from In progress to Backlog in robotmk Jul 1, 2020
@simonmeggle simonmeggle modified the milestones: v0.1.0, v0.2.0 Jul 1, 2020
@simonmeggle
Copy link
Collaborator Author

(already solved)

robotmk automation moved this from Backlog to Done Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:agent component: Agent (py) c:bakery component: bakery c:wato component: WATO rules p:medium Priority: medium t:feature Type: new feature
Projects
robotmk
  
Done
Development

No branches or pull requests

2 participants