Merge lp:~noise/tanuki-agent/tutorial-twerks into lp:tanuki-agent

Proposed by Bret Barker
Status: Merged
Approved by: Bret Barker
Approved revision: 171
Merged at revision: 171
Proposed branch: lp:~noise/tanuki-agent/tutorial-twerks
Merge into: lp:tanuki-agent
Diff against target: 82 lines (+11/-9)
2 files modified
agent.py (+2/-2)
docs/tutorial2.md (+9/-7)
To merge this branch: bzr merge lp:~noise/tanuki-agent/tutorial-twerks
Reviewer Review Type Date Requested Status
Roberto Alsina (community) Approve
Review via email: mp+278644@code.launchpad.net

Commit message

fix agent configparser cfg; tweaks to tutorial

To post a comment you must log in.
Revision history for this message
Roberto Alsina (ralsina) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'agent.py'
2--- agent.py 2015-11-25 19:37:18 +0000
3+++ agent.py 2015-11-25 20:48:01 +0000
4@@ -7,8 +7,8 @@
5 Tanuki Agent
6
7 Usage:
8- agent.py [-vq] [--once] [--drain] [--register] [--debug] \
9- [--local-test <test_opportunity_json_file>] <configfile>
10+ agent.py [-vq] [--once] [--drain] [--register] [--debug] <configfile>
11+ agent.py [-vq] [--debug] --local-test <test_opportunity_json_file> <configfile>
12 agent.py --default-config [<configfile>]
13 agent.py --interactive-login [<configfile>]
14
15
16=== modified file 'docs/tutorial2.md'
17--- docs/tutorial2.md 2015-11-24 19:07:08 +0000
18+++ docs/tutorial2.md 2015-11-25 20:48:01 +0000
19@@ -261,8 +261,9 @@
20 For the purposes of Product Integration testing, we are only concerned about the list of snaps that compose the product and some additional metadata decribed here:
21
22 - ```name```: A short name to identify this Product, does not need to be unique.
23+- ```primary_snap_name```: the fully qualified name of the snap
24+ package that defines this product and access to product test information.
25 - ```release```: the Ubuntu Core release this products aims for (currently "15.04-core" or "rolling-core" as known by the Store)
26-- ```base_image_reference```: optional (TODO: we should make it optional as it shouldn't be needed in all-snaps land anymore)
27 - ```snaps```: the list of snap names that that comprise the product
28
29 TODO: instruct them to export SSO_USERNAME or have the agent login step do it.
30@@ -284,7 +285,7 @@
31 ]
32 }'
33
34-output will contain the ID newly created product definition. You will need to export this as an environment variable for use in later API calls as follows:
35+the output will contain the ID newly created product definition. You will need to export this as an environment variable for use in later API calls as follows:
36
37 export PRODUCT_ID=<id from output above>
38
39@@ -306,17 +307,18 @@
40
41 ./api_example.py -X POST config.ini https://spi.canonical.com/products/$PRODUCT_ID/tests/specs --data '{
42 "name": "Tutorial Example Test Specification",
43+ "platform": "armhf",
44 "product_id": "$PRODUCT_ID",
45 "channels": [ ['base': 'stable', 'update': 'edge'] ],
46 "test_payload": {
47 "tarball_url": "https://spi.canonical.com/assets/test_tarball2.tar.gz",
48- "test_cmd": "./test"
49+ "test_cmd": "./test2"
50 }
51 }'
52
53 At this point the system is configured for your product and tests, and will supervise the Store for new versions of the snaps listed in your Product.
54
55-TODO: note about not being in all-snaps land yet.
56+TODO: note about not being in all-snaps land yet and how that affects os/kernel.
57
58
59 ### First test run
60@@ -365,7 +367,7 @@
61 "event_type": "QUEUED_FOR_AGENTS"
62 },
63 {
64- "platform": "spi-tutorial-raspi2",
65+ "platform": "armhf",
66 "timestamp": "2015-10-28T18:34:58.988000+00:00",
67 "agent_group": "default",
68 "agent_id": "special",
69@@ -452,12 +454,12 @@
70
71 [environment]
72 ARTIFACT_DIR='/home/user/artifacts'
73-
74+
75 #### Generated GM Candidate images
76
77 The images that are generated by the provisioning kit may be stored for later use. For example if tests pass and you would like to release the image you will want to retrieve the binary from the Agent host.
78
79-The sample provisioning kit stores the images in a ./run/images
80+The sample provisioning kit stores the images in a ```./run/images```
81 subdirector of the agent installation. You are responsible for
82 handling transport of the images from there to a storage system of your choice.
83

Subscribers

People subscribed via source and target branches

to all changes: