You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2016/04/16 00:06:27 UTC
mesos git commit: Fixed broken mesos build.
Repository: mesos
Updated Branches:
refs/heads/master 3a60e5e63 -> e24c2b242
Fixed broken mesos build.
Review: https://reviews.apache.org/r/46281/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/e24c2b24
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/e24c2b24
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/e24c2b24
Branch: refs/heads/master
Commit: e24c2b24216b284f5d96bf69de15ed5f843ed019
Parents: 3a60e5e
Author: Anand Mazumdar <ma...@gmail.com>
Authored: Fri Apr 15 17:06:13 2016 -0500
Committer: Vinod Kone <vi...@gmail.com>
Committed: Fri Apr 15 17:06:13 2016 -0500
----------------------------------------------------------------------
src/tests/scheduler_http_api_tests.cpp | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/e24c2b24/src/tests/scheduler_http_api_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/scheduler_http_api_tests.cpp b/src/tests/scheduler_http_api_tests.cpp
index 85e55e2..c12205f 100644
--- a/src/tests/scheduler_http_api_tests.cpp
+++ b/src/tests/scheduler_http_api_tests.cpp
@@ -315,11 +315,7 @@ TEST_P(SchedulerHttpApiTest, Subscribe)
// the event is error on the stream in response to a Subscribe call request.
TEST_P(SchedulerHttpApiTest, RejectFrameworkWithInvalidRole)
{
- // HTTP schedulers cannot yet authenticate.
- master::Flags flags = CreateMasterFlags();
- flags.authenticate_frameworks = false;
-
- Try<Owned<cluster::Master>> master = StartMaster(flags);
+ Try<Owned<cluster::Master>> master = StartMaster();
ASSERT_SOME(master);
Call call;
@@ -333,7 +329,8 @@ TEST_P(SchedulerHttpApiTest, RejectFrameworkWithInvalidRole)
// Retrieve the parameter passed as content type to this test.
const string contentType = GetParam();
- process::http::Headers headers;
+
+ process::http::Headers headers = createBasicAuthHeaders(DEFAULT_CREDENTIAL);
headers["Accept"] = contentType;
Future<Response> response = process::http::streaming::post(