Merge lp:~joetalbott/utah/doc_client_updates into lp:utah

Proposed by Joe Talbott
Status: Merged
Merged at revision: 688
Proposed branch: lp:~joetalbott/utah/doc_client_updates
Merge into: lp:utah
Diff against target: 67 lines (+20/-1)
2 files modified
debian/changelog (+6/-0)
docs/source/development.rst (+14/-1)
To merge this branch: bzr merge lp:~joetalbott/utah/doc_client_updates
Reviewer Review Type Date Requested Status
Max Brustkern (community) Approve
Joe Talbott (community) Needs Resubmitting
Review via email: mp+126742@code.launchpad.net

Description of the change

Add some wording to clarify which fields in the control and runlist files are required.

To post a comment you must log in.
Revision history for this message
Max Brustkern (nuclearbob) wrote :

On line 31 of the merge:
'Name' must correspond tot the
I'm guessing you mean "to the".

On line 42:
has cachedd credentials
Maybe "cached"?

Finally, when tc_setup sets up the "environment" this doesn't appear to include any propagating environment variables defined in tc_setup into the environment used to run the actual command. I'm guessing this is intentional, but it might be useful to note that in here somewhere? I'm not sure of the best way to put it.

Other than that, good stuff.

689. By Joe Talbott

client - Fix some typos and reword 'tc_setup' description.

Revision history for this message
Joe Talbott (joetalbott) wrote :

Updated to address the issues you pointed out.

review: Needs Resubmitting
Revision history for this message
Max Brustkern (nuclearbob) wrote :

Looks good.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2012-09-27 13:57:33 +0000
+++ debian/changelog 2012-09-28 20:19:20 +0000
@@ -1,3 +1,9 @@
1utah (0.4ubuntu67) precise; urgency=low
2
3 * Update client docs to explain files a bit more clearly
4
5 -- Joe Talbott <joe.talbott@canonical.com> Thu, 27 Sep 2012 12:50:08 -0400
6
1utah (0.4ubuntu66) precise; urgency=low7utah (0.4ubuntu66) precise; urgency=low
28
3 * Add 'run_as' support9 * Add 'run_as' support
410
=== modified file 'docs/source/development.rst'
--- docs/source/development.rst 2012-09-27 14:37:27 +0000
+++ docs/source/development.rst 2012-09-28 20:19:20 +0000
@@ -64,7 +64,7 @@
6464
65 - name: testsuite165 - name: testsuite1
66 fetch_cmd : git clone/pull wherever66 fetch_cmd : git clone/pull wherever
67 include_tests:67 include_tests:
68 - t168 - t1
69 - t269 - t2
70 - t3...70 - t3...
@@ -74,6 +74,10 @@
74 - st474 - st4
75 - st575 - st5
7676
77The only required fields are 'name' and 'fetch_cmd'. 'Name' must correspond to the name of the top-level testsuite directory. 'Fetch_cmd' should be a command that populates the testsuite directory created by utah-client with actual testsuite directory structure.
78
79'Include_tests' will limit the testcases that are run to only those listed by this option. 'Exclude_tests' will run all the tests in the testsuite's tslist.run file except those listed by this option.
80
77Test suites can be divided in categories (for our internal use, or for test81Test suites can be divided in categories (for our internal use, or for test
78cases submitted to our test case base) or they can be in a repository anywhere.82cases submitted to our test case base) or they can be in a repository anywhere.
7983
@@ -91,6 +95,8 @@
91 overrides: # array of control properties to override95 overrides: # array of control properties to override
92 - timeout: 200 # timeout in seconds96 - timeout: 200 # timeout in seconds
9397
98'Test' is the only required field in this file and must match a directory name in the testsuite tree. 'Run_as' utilizes sudo to run the testcase as the given user. NOTE: this requires that the user running the utah client either has cached credentials or is allowed to run commands without a password. The 'overrides' array accepts any option from the tc_control file. Overrides should be used sparingly since it makes more sense to adjust the options in the tc_control file rather than here.
99
94**ts_control file contains:**100**ts_control file contains:**
95101
96::102::
@@ -101,6 +107,7 @@
101 # the whole test suite107 # the whole test suite
102 ts_cleanup: tcleanup/cleanup.sh # clean up test suite108 ts_cleanup: tcleanup/cleanup.sh # clean up test suite
103109
110There are no required fields in this file.
104111
105To avoid excessive typing and repetition in runlists and control files the112To avoid excessive typing and repetition in runlists and control files the
106following rules apply:113following rules apply:
@@ -147,6 +154,12 @@
147 tc_setup: t1/t1 setup # in case the test case has a setup154 tc_setup: t1/t1 setup # in case the test case has a setup
148 tc_cleanup: t1/t1 cleanup # in case the test has a cleanup155 tc_cleanup: t1/t1 cleanup # in case the test has a cleanup
149156
157In this file 'command', 'description', 'dependencies', 'actions', 'expected_results', and 'timeout' are required. 'Command' is the command to actually run the test. 'Description' is a textual description of the test. 'Dependencies' is a list of items the test depends on. 'Action' is a list of actions the test executes and 'expected_results' is a list of what those actions should result in. 'Timeout' is the ammount of time the test should complete within and is used to avoid tests that might loop indefinitely.
158
159'Type' currently defaults to 'userland' and may in the future have other options as the need arises.
160
161'Build_cmd' can be used to build any binary test cases. 'Tc_setup' can be used to setup any needed data or files for the test and 'tc_cleanup' can be used to remove the data or files added by 'tc_setup'. 'Build_cmd', 'tc_setup', and 'tc_cleanup' are all simple shell commands similar to 'command'.
162
150For each test case that is a binary or a script, there will be an option163For each test case that is a binary or a script, there will be an option
151to define a setup and a cleanup function if they wish so, and it is the test164to define a setup and a cleanup function if they wish so, and it is the test
152code developer’s responsibility to add the right parameters to their code so165code developer’s responsibility to add the right parameters to their code so

Subscribers

People subscribed via source and target branches