Merge lp:~fgimenez/snappy/generalize-build-tests-across-versions into lp:~snappy-dev/snappy/snappy-moved-to-github

Proposed by Federico Gimenez on 2015-07-29
Status: Merged
Approved by: Leo Arias on 2015-07-31
Approved revision: 622
Merged at revision: 622
Proposed branch: lp:~fgimenez/snappy/generalize-build-tests-across-versions
Merge into: lp:~snappy-dev/snappy/snappy-moved-to-github
Prerequisite: lp:~fgimenez/snappy/fix-failover-tests
Diff against target: 34 lines (+3/-3)
2 files modified
_integration-tests/tests/build_test.go (+2/-2)
_integration-tests/testutils/common/common.go (+1/-1)
To merge this branch: bzr merge lp:~fgimenez/snappy/generalize-build-tests-across-versions
Reviewer Review Type Date Requested Status
Leo Arias 2015-07-29 Approve on 2015-07-31
Review via email: mp+266191@code.launchpad.net

This proposal supersedes a proposal from 2015-07-29.

Commit Message

Build message error and install command generalized to work across versions

Description of the Change

Build message error and install command generalized to work across versions

To post a comment you must log in.
616. By Federico Gimenez on 2015-07-29

merged prerequisite

617. By Federico Gimenez on 2015-07-29

merged trunk

618. By Federico Gimenez on 2015-07-29

Do not specify release and channel in config when connecting to remote testbed

619. By Federico Gimenez on 2015-07-29

merged prerequisite

Leo Arias (elopio) wrote :

The parse yaml change fails on rolling. So I think you should split this branch, as we should have the --allow-unauthenticated change in both trunk and 15.04, and the yaml change only on 15.04.

I will add this changes to my backport branch.

620. By Federico Gimenez on 2015-07-30

Fixed regex

Federico Gimenez (fgimenez) wrote :

Sorry, I thought I had tested it on rolling/edge, probably the kvm machine up by the time I launched the test was not the expected one.

Now it's fixed and tested on rolling/edge, 15.04/edge and 15.04/stable, please have another look at it.

Thanks!

621. By Federico Gimenez on 2015-07-30

merged prerequisite

622. By Federico Gimenez on 2015-07-30

merge prerequisite

Leo Arias (elopio) wrote :

works now, thanks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '_integration-tests/tests/build_test.go'
2--- _integration-tests/tests/build_test.go 2015-07-28 04:03:52 +0000
3+++ _integration-tests/tests/build_test.go 2015-07-30 16:20:53 +0000
4@@ -58,7 +58,7 @@
5 // install built snap and check output
6 installOutput := InstallSnap(c, snapName)
7 defer RemoveSnap(c, basicSnapName)
8- expected = "" +
9+ expected = "(?ms)" +
10 "Installing " + snapName + "\n" +
11 ".*Signature check failed, but installing anyway as requested\n" +
12 "Name +Date +Version +Developer \n" +
13@@ -73,7 +73,7 @@
14 }
15
16 func (s *buildSuite) TestBuildWrongYamlSnapOnSnappy(c *C) {
17- commonWrongTest(c, wrongYamlSnapName, "can not parse package.yaml:.*\n")
18+ commonWrongTest(c, wrongYamlSnapName, "(?msi).*Can not parse.*yaml: line 2: mapping values are not allowed in this context.*")
19 }
20
21 func (s *buildSuite) TestBuildMissingReadmeSnapOnSnappy(c *C) {
22
23=== modified file '_integration-tests/testutils/common/common.go'
24--- _integration-tests/testutils/common/common.go 2015-07-30 16:20:53 +0000
25+++ _integration-tests/testutils/common/common.go 2015-07-30 16:20:53 +0000
26@@ -339,7 +339,7 @@
27
28 // InstallSnap executes the required command to install the specified snap
29 func InstallSnap(c *check.C, packageName string) string {
30- return ExecCommand(c, "sudo", "snappy", "install", packageName)
31+ return ExecCommand(c, "sudo", "snappy", "install", packageName, "--allow-unauthenticated")
32 }
33
34 // RemoveSnap executes the required command to remove the specified snap

Subscribers

People subscribed via source and target branches