-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integration tests now fail if there are log errors unless the test op…
…ts out.
- Loading branch information
1 parent
3038849
commit 48cddd2
Showing
36 changed files
with
107 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,6 +83,7 @@ func (suite *BundleIntegrationTestSuite) TestBundle_project_invalid() { | |
cp := ts.Spawn("bundles", "--namespace", "junk/junk") | ||
cp.Expect("The requested project junk does not exist under junk") | ||
cp.ExpectExitCode(1) | ||
ts.IgnoreLogErrors() | ||
} | ||
|
||
func (suite *BundleIntegrationTestSuite) TestBundle_searchSimple() { | ||
|
@@ -131,6 +132,7 @@ func (suite *BundleIntegrationTestSuite) TestBundle_searchWithExactTermWrongTerm | |
cp := ts.Spawn("bundles", "search", "xxxUtilitiesxxx", "--exact-term") | ||
cp.Expect("No bundles in our catalog match") | ||
cp.ExpectExitCode(1) | ||
ts.IgnoreLogErrors() | ||
} | ||
|
||
func (suite *BundleIntegrationTestSuite) TestBundle_searchWithLang() { | ||
|
@@ -153,6 +155,7 @@ func (suite *BundleIntegrationTestSuite) TestBundle_searchWithWrongLang() { | |
cp := ts.Spawn("bundles", "search", "Utilities", "--language=python") | ||
cp.Expect("No bundles in our catalog match") | ||
cp.ExpectExitCode(1) | ||
ts.IgnoreLogErrors() | ||
} | ||
|
||
func (suite *BundleIntegrationTestSuite) TestBundle_searchWithBadLang() { | ||
|
@@ -164,6 +167,7 @@ func (suite *BundleIntegrationTestSuite) TestBundle_searchWithBadLang() { | |
cp := ts.Spawn("bundles", "search", "Utilities", "--language=bad") | ||
cp.Expect("Cannot obtain search") | ||
cp.ExpectExitCode(1) | ||
ts.IgnoreLogErrors() | ||
} | ||
|
||
func (suite *BundleIntegrationTestSuite) TestBundle_detached_operation() { | ||
|
@@ -198,6 +202,7 @@ func (suite *BundleIntegrationTestSuite) TestBundle_detached_operation() { | |
cp := ts.Spawn("bundles", "install", "[email protected]") | ||
cp.ExpectRe("(?:bundle updated|being built)") | ||
cp.ExpectExitCode(1) | ||
ts.IgnoreLogErrors() | ||
}) | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,7 @@ func (suite *InfoIntegrationTestSuite) TestInfo_UnavailableVersion() { | |
cp := ts.Spawn("info", "[email protected]", "--language", "python") | ||
cp.Expect("Could not find version 9.9.9 for package pylint") | ||
cp.ExpectExitCode(1) | ||
ts.IgnoreLogErrors() | ||
} | ||
|
||
func (suite *InfoIntegrationTestSuite) TestJSON() { | ||
|
@@ -62,6 +63,7 @@ func (suite *InfoIntegrationTestSuite) TestJSON() { | |
cp.Expect(`"error":`) | ||
cp.ExpectExitCode(1) | ||
AssertValidJSON(suite.T(), cp) | ||
ts.IgnoreLogErrors() | ||
} | ||
|
||
func TestInfoIntegrationTestSuite(t *testing.T) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ func (suite *InstallIntegrationTestSuite) TestInstall_InvalidCommit() { | |
//cp.Expect("Could not find or read the commit file") // re-enable in DX-2307 | ||
cp.Expect("Invalid commit ID") // remove in DX-2307 | ||
cp.ExpectExitCode(1) | ||
ts.IgnoreLogErrors() | ||
|
||
// Re-enable in DX-2307. | ||
//if strings.Count(cp.Snapshot(), " x ") != 1 { | ||
|
@@ -52,6 +53,7 @@ func (suite *InstallIntegrationTestSuite) TestInstall_NoMatches_NoAlternatives() | |
cp.Expect("No results found for search term") | ||
cp.Expect("find alternatives") // This verifies no alternatives were found | ||
cp.ExpectExitCode(1) | ||
ts.IgnoreLogErrors() | ||
|
||
if strings.Count(strings.ReplaceAll(cp.Snapshot(), " x Failed", ""), " x ") != 1 { | ||
suite.Fail("Expected exactly ONE error message, got: ", cp.Snapshot()) | ||
|
@@ -68,6 +70,7 @@ func (suite *InstallIntegrationTestSuite) TestInstall_NoMatches_Alternatives() { | |
cp.Expect("No results found for search term") | ||
cp.Expect("did you mean") // This verifies alternatives were found | ||
cp.ExpectExitCode(1) | ||
ts.IgnoreLogErrors() | ||
|
||
if strings.Count(strings.ReplaceAll(cp.Snapshot(), " x Failed", ""), " x ") != 1 { | ||
suite.Fail("Expected exactly ONE error message, got: ", cp.Snapshot()) | ||
|
@@ -83,6 +86,7 @@ func (suite *InstallIntegrationTestSuite) TestInstall_BuildPlannerError() { | |
cp := ts.SpawnWithOpts(e2e.OptArgs("install", "[email protected]"), e2e.OptAppendEnv(constants.DisableRuntime+"=true")) | ||
cp.Expect("Could not plan build, platform responded with", e2e.RuntimeSourcingTimeoutOpt) | ||
cp.ExpectExitCode(1) | ||
ts.IgnoreLogErrors() | ||
|
||
if strings.Count(strings.ReplaceAll(cp.Snapshot(), " x Failed", ""), " x ") != 1 { | ||
suite.Fail("Expected exactly ONE error message, got: ", cp.Snapshot()) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.