Repository: mesos Updated Branches: refs/heads/master 1d68eed90 -> df2a1fd1d
Fixed a bug in teardown test. This teardown endpoint test needs valid credentials to properly test a missing 'frameworkID' request. Review: https://reviews.apache.org/r/39135 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/a9148f6d Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/a9148f6d Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/a9148f6d Branch: refs/heads/master Commit: a9148f6d61b6f49ca4489e6fa29ffc90ffd8e948 Parents: 1d68eed Author: Isabel Jimenez <[email protected]> Authored: Mon Oct 12 19:32:16 2015 +0200 Committer: Michael Park <[email protected]> Committed: Mon Oct 12 19:32:16 2015 +0200 ---------------------------------------------------------------------- src/tests/teardown_tests.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/a9148f6d/src/tests/teardown_tests.cpp ---------------------------------------------------------------------- diff --git a/src/tests/teardown_tests.cpp b/src/tests/teardown_tests.cpp index 2eeead7..89eb314 100644 --- a/src/tests/teardown_tests.cpp +++ b/src/tests/teardown_tests.cpp @@ -264,7 +264,9 @@ TEST_F(TeardownTest, TeardownEndpointNoFrameworkId) AWAIT_READY(frameworkId); process::http::Headers headers; headers["Authorization"] = "Basic " + - base64::encode("badPrincipal:badSecret"); + base64::encode(DEFAULT_CREDENTIAL.principal() + + ":" + DEFAULT_CREDENTIAL.secret()); + Future<Response> response = process::http::post(master.get(), "teardown", headers, ""); AWAIT_READY(response);
