summaryrefslogtreecommitdiff
path: root/tests.deploy
Commit message (Collapse)AuthorAgeFilesLines
* cmdtests: Use YAML not JSON to represent morphologiesAdam Coldrick2014-08-141-81/+47
|
* Fix up before mergeSam Thursfield2014-06-091-1/+1
| | | | | | | - All tests now pass - The odd case of chunks with the same name but different repo URLs now correctly informs the user of the multiple checkouts that were done. - Tidyups
* Use morph print-architecture to generate morphologiesRichard Maw2014-03-141-2/+2
| | | | | uname tends to only give us a valid morph architecture on x86_64, this makes it work on other architectures.
* tests: Fix tests.deploy/deploy-clusterSam Thursfield2014-03-112-8/+4
| | | | My fault for failing to commit the .stdout file when I updated the test.
* Fix paths for chunk directories in cmdtestsLars Wirzenius2014-03-062-5/+5
|
* Disable test so that "./check --full" passesLars Wirzenius2014-03-061-0/+5
| | | | | It should be fixed and re-enabled by someone who understands what's going on in the test. Preferably by writing it into yarn form.
* deploy: Record deployment information in deployed systemSam Thursfield2014-03-041-1/+16
| | | | | | | | | | | | | | | | | | This commit introduces a new requirement: USERS MUST NOT HAVE SENSITIVE DATA IN THEIR ENVIRONMENT. Otherwise it will be leaked into the system. Note that configuration fields with 'PASSWORD' in their name are stripped before writing the /baserock/deployment.meta file, so the OpenStack OS_PASSWORD field is not leaked. We want this so that we can run hooks at upgrade-time in the future. These hooks might need to know how the system was configured and what releaseuu it was. I'm not quite sure how we will define 'release' yet, but by using `git tag` and `git describe` we are able to textually label a time period in the history of the system's source code. We already have the specific SHA1 of definitions.git stored in the system metadata, so this should give us enough to be able to implement specific hooks that work around any awkward upgrade complications we encounter in the future.
* Remove tests for working with null refsRichard Maw2014-02-131-35/+0
| | | | | Refs should be completely omitted, and this is now the standard behaviour, so there's little value in testing the behaviour separately.
* Don't use repo or ref in test suiteRichard Maw2014-02-131-9/+1
|
* Merge branch 'danielfirth/RT219'Daniel Firth2013-10-112-7/+9
|\ | | | | | | | | Reviewed by Lars Wirzenius Reviewd by Richard Ipsum
| * Morph now executes extensions in the repository containing the morphologiesDaniel Firth2013-09-262-7/+9
| |
* | Merge remote-tracking branch 'origin/danielfirth/RT189'Lars Wirzenius2013-10-081-2/+0
|\ \ | | | | | | | | | Changed the error (exception) to list all obsolete fields.
| * | Dropped support for 'system-kind' from system morphology filesDan Firth2013-09-271-2/+0
| |/
* | Add tests for building and deploying systems with null refsRichard Maw2013-09-261-0/+35
|/
* Rework `morph deploy` to work with cluster morphologies.Tiago Gomes2013-08-164-4/+105
| | | | | | | | | | | | | From now on, `morph deploy` will work to only accept a cluster morphology as argument. A cluster morphology defines a list of systems to built, and for each system a list of ways to deploy them. We will not support the old syntax anymore. - Update `morph deploy` docstring with the new syntax, including an explanation of cluster morphologies (also document `tar` deployments). - Fix tests that used the old syntax. - Add tests for cluster deployments.
* Apply Richard Maw's suggestionsJonathan Maw2013-05-292-16/+2
|
* Make deploy-rawdisk test pass and add a test for undefined DISK_SIZEJonathan Maw2013-05-292-1/+38
|
* Add 'build-mode' field for chunks in a stratumSam Thursfield2013-03-131-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Allowed values: staging: build with a staging chroot (default) test: build with the host's tools bootstrap: build with the host's tools, and do not include this chunk in the final stratum artifact In the past, 'normal mode' has been used to describe building a chunk with the host's tools. We don't want that mode to ever be used, because it is a huge hole in reproducability, but we need to keep it around to avoid making Morph's cmdtest suite depend on Baserock. Hopefully naming it 'test' should discourage potential abusers. It is unfortunate that the build tests now take a separate code path compared to real-world usage of Morph. However, this is necessary to avoid a circular dependency between Morph's test suite and the build-essential stratum in Baserock. We do whole-build testing of Baserock, too, so the 'staging' code path is still tested outside of Morph. However, testing a staging area requires populating it with at minimum a working shell, and this is a bit too complex to go in Morph's test suite.
* Remove features used by old bootstrap methodSam Thursfield2013-03-131-1/+0
| | | | | | That means that bootstrapping Baserock is currently not possible with this branch of Morph, but there's no reason it cannot be bootstrapped using an older version of Morph instead.
* Disable deployment test on Python 2.6Lars Wirzenius2013-02-121-2/+9
| | | | | Also, make test use bash instead of sh, so it passes on squeeze as well as Baserock.
* Add cmdtest for "morph deploy" and rawdisk.writeLars Wirzenius2013-02-063-0/+270