YARN-524 TestYarnVersionInfo failing if generated properties doesn't include an SVN URL
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1463300 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b55756dd03
commit
7c65dbb938
|
@ -54,6 +54,9 @@ Trunk - Unreleased
|
||||||
|
|
||||||
YARN-359. Fixing commands for container signalling in Windows. (Chris Nauroth
|
YARN-359. Fixing commands for container signalling in Windows. (Chris Nauroth
|
||||||
via vinodkv)
|
via vinodkv)
|
||||||
|
|
||||||
|
YARN-524 TestYarnVersionInfo failing if generated properties doesn't
|
||||||
|
include an SVN URL(stevel)
|
||||||
|
|
||||||
Release 2.0.5-beta - UNRELEASED
|
Release 2.0.5-beta - UNRELEASED
|
||||||
|
|
||||||
|
|
|
@ -40,11 +40,11 @@ public class TestYarnVersionInfo extends TestCase {
|
||||||
// make sure they aren't Unknown
|
// make sure they aren't Unknown
|
||||||
assertTrue("getVersion returned Unknown", !YarnVersionInfo.getVersion().equals("Unknown"));
|
assertTrue("getVersion returned Unknown", !YarnVersionInfo.getVersion().equals("Unknown"));
|
||||||
assertTrue("getUser returned Unknown", !YarnVersionInfo.getUser().equals("Unknown"));
|
assertTrue("getUser returned Unknown", !YarnVersionInfo.getUser().equals("Unknown"));
|
||||||
assertTrue("getUrl returned Unknown", !YarnVersionInfo.getUrl().equals("Unknown"));
|
|
||||||
assertTrue("getSrcChecksum returned Unknown", !YarnVersionInfo.getSrcChecksum().equals("Unknown"));
|
assertTrue("getSrcChecksum returned Unknown", !YarnVersionInfo.getSrcChecksum().equals("Unknown"));
|
||||||
|
|
||||||
// these could be Unknown if the VersionInfo generated from code not in svn or git
|
// these could be Unknown if the VersionInfo generated from code not in svn or git
|
||||||
// so just check that they return something
|
// so just check that they return something
|
||||||
|
assertNotNull("getUrl returned null", YarnVersionInfo.getUrl());
|
||||||
assertNotNull("getRevision returned null", YarnVersionInfo.getRevision());
|
assertNotNull("getRevision returned null", YarnVersionInfo.getRevision());
|
||||||
assertNotNull("getBranch returned null", YarnVersionInfo.getBranch());
|
assertNotNull("getBranch returned null", YarnVersionInfo.getBranch());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue