Merge lp:~facundo/tanuki-agent/tutorial-first-boot into lp:tanuki-agent

Proposed by Facundo Batista
Status: Merged
Approved by: Roberto Alsina
Approved revision: 196
Merged at revision: 196
Proposed branch: lp:~facundo/tanuki-agent/tutorial-first-boot
Merge into: lp:tanuki-agent
Diff against target: 47 lines (+24/-2)
1 file modified
docs/tutorial-products.md (+24/-2)
To merge this branch: bzr merge lp:~facundo/tanuki-agent/tutorial-first-boot
Reviewer Review Type Date Requested Status
Roberto Alsina (community) Approve
Review via email: mp+281252@code.launchpad.net

Commit message

Added a section regarding first boot tests.

Description of the change

Added a section regarding first boot tests.

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
=== modified file 'docs/tutorial-products.md'
--- docs/tutorial-products.md 2015-12-15 20:34:26 +0000
+++ docs/tutorial-products.md 2015-12-22 20:08:11 +0000
@@ -579,7 +579,7 @@
579579
580If all went well, you should now see both versions 1 and 2 of test-snap listed. If you don't see version 2 listed under the Edge channel, try refreshing the page. 580If all went well, you should now see both versions 1 and 2 of test-snap listed. If you don't see version 2 listed under the Edge channel, try refreshing the page.
581581
582You now have an updated applicaiton snap published to the ```edge``` channel. 582You now have an updated application snap published to the ```edge``` channel.
583583
584## Running the Update Test584## Running the Update Test
585585
@@ -598,7 +598,7 @@
598598
599## Promote to Stable599## Promote to Stable
600600
601Assuming the test has passed and you are ready to release this version of the applicaiton to your customers, it is now time to Promote the package via the MyApps site:601Assuming the test has passed and you are ready to release this version of the application to your customers, it is now time to Promote the package via the MyApps site:
602602
603- visit: https://myapps.developer.ubuntu.com/dev/click-apps/?format=snap603- visit: https://myapps.developer.ubuntu.com/dev/click-apps/?format=snap
604- click on the test-snap package name to get to the package details page604- click on the test-snap package name to get to the package details page
@@ -620,3 +620,25 @@
620 </div>620 </div>
621</div>621</div>
622622
623
624## First-boot tests
625
626When you promote images, as said above, the system will generate new Gold Master candidate tests, creating Product Base Images that are the base for when testing Updates.
627
628Update tests will be created always using the latest Product Base Image, but if you release images you'll need the Update tests to also be created using those released images. This is handled automatically by the system, all you need is to mark the Product Base Image as released, and the Update tests will be generated using not only the latest Product Base Image, but also all those that were ever released (until you deactivate them).
629
630This way you can list all the Product Base Images for a given product.
631
632 ./api_example.py -X GET config.ini https://spi.canonical.com/products/$PRODUCT_ID/baseimages
633
634To mark any of those as released, just do:
635
636 ./api_example.py -X PUT config.ini https://spi.canonical.com/products/$PRODUCT_ID/baseimages/<baseimage_id> --data '{
637 "released": true
638 }'
639
640After this step, that Product Base Image will be used in the Update tests. The moment you decide that any Product Base Image shouldn't be used for Update tests, you can deactivate it, by doing:
641
642 ./api_example.py -X PUT config.ini https://spi.canonical.com/products/$PRODUCT_ID/baseimages/<baseimage_id> --data '{
643 "active": false
644 }'

Subscribers

People subscribed via source and target branches

to all changes: