Bug 872421 - Docs should explain test environment created by Beaker
Summary: Docs should explain test environment created by Beaker
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: Doc
Version: 0.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 0.13
Assignee: Dan Callaghan
QA Contact: Nick Coghlan
URL:
Whiteboard: Doc
: 855164 (view as bug list)
Depends On:
Blocks: 636080
TreeView+ depends on / blocked
 
Reported: 2012-11-02 03:23 UTC by Nick Coghlan
Modified: 2018-02-06 00:41 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-25 06:27:52 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 872428 0 unspecified CLOSED Worked example showing process of updating, submitting and executing tasks 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 960317 0 urgent CLOSED Clean up task documentation (as per review comments) 2021-02-22 00:41:40 UTC

Internal Links: 872428 960317

Description Nick Coghlan 2012-11-02 03:23:12 UTC
I can't find anything in the User Guide that explains what resources are made available to me by default in the test environment. Nor is there anything in the Developer Guide to explain how the test environment is set up, or how to make new resources available.

How do I?

1. Check if I can communicate with the lab controller?

2. Upload a log file?

3. Report pass or fail of a test step? (Surprisingly, http://beaker-project.org/guide/User_Guide-Getting_Started-Process-Tests-Reporting_Results.html *doesn't* provide this critical piece of information. It appears to assume the reader already knows this, since it jumps straight in to hugely complicated scenarios)

Comment 1 Nick Coghlan 2012-11-02 03:47:14 UTC
I *think* the key missing pieces that need to be documented are:

* The BEAKER environment variable will be set to refer to the appropriate host for reporting results (etc).

* The relevant commands in http://git.beaker-project.org/cgit/rhts/tree/bin will be available (or can be made available by configuring your task appropriately)

Comment 2 Raymond Mancy 2012-11-27 04:01:51 UTC
(In reply to comment #0)
> I can't find anything in the User Guide that explains what resources are
> made available to me by default in the test environment.

Aren't these set by the harness?


> Nor is there
> anything in the Developer Guide to explain how the test environment is set
> up, or how to make new resources available.
> 
> How do I?
> 
> 1. Check if I can communicate with the lab controller?
> 
> 2. Upload a log file?
>
> 3. Report pass or fail of a test step? (Surprisingly,
> http://beaker-project.org/guide/User_Guide-Getting_Started-Process-Tests-
> Reporting_Results.html *doesn't* provide this critical piece of information.
> It appears to assume the reader already knows this, since it jumps straight
> in to hugely complicated scenarios)

Rightyly or wrongly, that document it seems was never intended as a n00bs guide to how to report a pass or fail, rather as a thought provoker for experienced writers of beaker tests.

Comment 3 Amit Saha 2012-11-27 04:08:23 UTC
(In reply to comment #1)
> I *think* the key missing pieces that need to be documented are:
> 
> * The BEAKER environment variable will be set to refer to the appropriate
> host for reporting results (etc).
> 
> * The relevant commands in http://git.beaker-project.org/cgit/rhts/tree/bin
> will be available (or can be made available by configuring your task
> appropriately)

I *think* these commands are not meant to be used directly, but via the Makefile that beaker-wizard generates. At least some of them uses environment variables which are set by this Makefile.

Comment 4 Nick Coghlan 2012-11-28 03:00:42 UTC
OK, the missing docs appear to be on the beakerlib wiki: https://fedorahosted.org/beakerlib/wiki/Manual

Our docs should reference those from a "Writing your first test" getting started section.

Comment 5 Dan Callaghan 2012-11-28 04:57:14 UTC
(In reply to comment #4)
> OK, the missing docs appear to be on the beakerlib wiki:
> https://fedorahosted.org/beakerlib/wiki/Manual
> 
> Our docs should reference those from a "Writing your first test" getting
> started section.

beakerlib is just a convenience library, it's also perfectly possible to write tests using the rhts-test-env commands directly (for example our /distribution/inventory and /distribution/beaker/dogfood tasks). beakerlib is just a layer wrapped around those. So we should document the rhts-test-env stuff, and then point at beakerlib as a more convenient way of writing complicated test scripts.

Comment 10 Dan Callaghan 2013-05-06 01:48:05 UTC
On Gerrit: http://gerrit.beaker-project.org/1919

Comment 11 Dan Callaghan 2013-05-06 02:34:28 UTC
*** Bug 855164 has been marked as a duplicate of this bug. ***

Comment 13 Dan Callaghan 2013-05-09 03:43:48 UTC
This is now included in the development version of Beaker's documentation:

http://beaker-project.org/docs-develop/user-guide/task-environment.html

Comment 15 Amit Saha 2013-06-25 06:27:52 UTC
Beaker 0.13.1 has been released.


Note You need to log in before you can comment on or make changes to this bug.