morgamic%mozilla.com a380aef43e Checking in schema 3 handling and accompanying tests. r=preed, bug 368117.
git-svn-id: svn://10.0.0.236/trunk@235949 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-13 19:17:12 +00:00

122 lines
6.8 KiB
Plaintext

!1 Variables
!define COMMAND_PATTERN {python %m -v %p}
!define TEST_RUNNER {/home/morgamic/pyfit/fit/FitServer.py}
!define host {http://khan-vm.mozilla.org/~morgamic/austest/update}
!define updateVersion {2}
!define product {Synthetic}
!define version {1.0}
!define platform {platform}
!define locale {locale}
!define osVersion {osVersion}
!define dist {dist}
!define distVersion {distVersion}
!1 Patches
1 only a complete
2 both complete and partial
|aus.Verify|${host}|${updateVersion}|${product}|${version}|${platform}|${locale}|${osVersion}|
|build|channel|complete|partial|hasUpdate?|hasComplete?|hasPartial?|isValidXml?|
|1000000001|channel|complete001|partial001|true|true|false|true|
|1000000002|channel|complete002|partial002|true|true|true|true|
!1 Invalid Input
1 no update is served for an invalid build id
|aus.Verify|${host}|${updateVersion}|${product}|${version}|${platform}|${locale}|${osVersion}|
|build|channel|complete|partial|hasUpdate?|hasComplete?|hasPartial?|isValidXml?|
|0000000000|channel|complete|partial|false|false|false|true|
!1 Channels and Fallback Channels
1 update exists for partner channel
2 update exists for normal channel
|aus.Verify|${host}|${updateVersion}|${product}|${version}|${platform}|${locale}|${osVersion}|
|build|channel|complete|partial|hasUpdate?|hasComplete?|hasPartial?|isValidXml?|
|3000000001|channel-cck-partner|complete-partner-003|partial-partner-003|true|true|true|true|
|3000000001|channel|complete003|partial003|true|true|true|true|
1 update for partner channel falls back and offers normal patches (complete|partial)004
2 update exists as expected for normal channel
|aus.Verify|${host}|${updateVersion}|${product}|${version}|${platform}|${locale}|${osVersion}|
|build|channel|complete|partial|hasUpdate?|hasComplete?|hasPartial?|isValidXml?|
|4000000001|channel-cck-partner|complete004|partial004|true|true|true|true|
|4000000001|channel|complete004|partial004|true|true|true|true|
1 update for partner channel does not fall back because explicit blank complete/partial files exist to stop it
2 update exists as expected for normal chanel
|aus.Verify|${host}|${updateVersion}|${product}|${version}|${platform}|${locale}|${osVersion}|
|build|channel|complete|partial|hasUpdate?|hasComplete?|hasPartial?|isValidXml?|
|4000000002|channel-cck-partner|complete004|partial004|false|false|false|true|
|4000000002|channel|complete004|partial004|true|true|true|true|
1 update exists only on partner channel
2 update does not exist for normal channel
|aus.Verify|${host}|${updateVersion}|${product}|${version}|${platform}|${locale}|${osVersion}|
|build|channel|complete|partial|hasUpdate?|hasComplete?|hasPartial?|isValidXml?|
|5000000001|channel-cck-partner|complete-partner-005|partial-partner-005|true|true|true|true|
|5000000001|channel|complete|partial|false|false|false|true|
1 no update exists for partner channel
2 no update exists for normal channel
|aus.Verify|${host}|${updateVersion}|${product}|${version}|${platform}|${locale}|${osVersion}|
|build|channel|complete|partial|hasUpdate?|hasComplete?|hasPartial?|isValidXml?|
|6000000001|channel-cck-partner|complete|partial|false|false|false|true|
|6000000001|channel|complete|partial|false|false|false|true|
!1 Build ID Validation
1 should serve update if build version in uri is newer than build version in *.txt
2 should serve update if build version in uri is newer than build version in *.txt, fallback channel
3 should serve update if build version in uri is older than build version in *.txt if using release datasource
|aus.Verify|${host}|${updateVersion}|${product}|${version}|${platform}|${locale}|${osVersion}|
|build|channel|complete|partial|hasUpdate?|hasComplete?|hasPartial?|isValidXml?|
|7000000001|channel|complete|partial|true|true|true|true|
|7000000001|channel-cck-partner|complete|partial|true|true|true|true|
|7000000003|channel|complete|partial|true|true|true|true|
1 should not serve update if build version in uri is newer than build version in *.txt if using the nightly datasource
2 should serve update, regardless of build ID in url or *.txt, if using the release datasource
3 should serve update if build version in uri is older than build version in *.txt if using release datasource and channel is nightly
|aus.Verify|${host}|1|${product}|${version}|${platform}|${locale}|NULL|
|build|channel|complete|partial|hasUpdate?|hasComplete?|hasPartial?|isValidXml?|
|7000000001|nightly|complete|partial|false|false|false|true|
|7000000002|nightly|complete|partial|true|true|true|true|
|7000000003|nightly|complete|partial|true|true|true|true|
!1 Major and Minor Updates
1 minor update using new snippet schema (preed's patch)
2 major update using new snippet schema (preed's patch)
3 minor update using existing snippet schema (minor was the only one, previously)
|aus.Verify|${host}|${updateVersion}|${product}|${version}|${platform}|${locale}|${osVersion}|
|build|channel|complete|partial|licenseUrl|hasUpdate?|isMinorUpdate?|isMajorUpdate?|hasLicenseUrl?|hasComplete?|hasPartial?|isValidXml?|
|8000000001|channel|complete|partial|license8|true|true|false|false|true|true|true|
|8000000002|channel|complete|partial|license8|true|false|true|true|true|true|true|
|8000000003|channel|complete|partial|license8|true|true|false|false|true|true|true|
!1 OS Version Compatibility
1 supported os version, or unknown os version
2 unsupported or blocked platform (exists in $unsupportedPlatforms in aus2 config)
|aus.Verify|${host}|${updateVersion}|${product}|${version}|${platform}|${locale}|
|build|channel|complete|partial|osVersion|hasUpdate?|hasComplete?|hasPartial?|isValidXml?|
|9000000001|channel|complete|partial|Web 2.0|true|true|true|true|
|9000000001|channel|complete|partial|Windows_98|false|false|false|true|
!1 Nightly Updates
1 outdated (>1 off) update serving only a complete (1.5.0.5->1.5.0.x)
2 one-off update serving both complete and partial (1.5.0.5->1.5.0.x)
3 client already at the latest build requests an update (no update should be offered)
4 version with no branchVersion in AUS config (6.0->?)
|aus.Verify|${host}|1|${product}|${version}|${platform}|${locale}|NULL|
|version|build|channel|complete|partial|hasUpdate?|hasComplete?|hasPartial?|isValidXml?|
|1.5.0.5|1100000001|nightly|complete|partial|true|true|false|true|
|1.5.0.5|1100000002|nightly|complete|partial|true|true|true|true|
|1.5.0.5|1100000003|nightly|complete|partial|false|false|false|true|
|6.0|1100000001|nightly|complete|partial|false|false|false|true|
!1 Dist URLs
1 complete update works with schema 3
2 complete and partial update works with schema 3
|aus.Verify|${host}|3|${product}|${version}|${platform}|${locale}|${osVersion}|
|build|channel|complete|partial|hasUpdate?|hasComplete?|hasPartial?|isValidXml?|
|1000000001|channel|complete001|partial001|true|true|false|true|
|1000000002|channel|complete002|partial002|true|true|true|true|