Commit 74b98889 authored by Ken Rockot's avatar Ken Rockot Committed by Commit Bot

Re-enable WebRequestAuthRequired test.

ExtensionWebRequestApiTest.WebRequestAuthRequired has been disabled
forever. It was originally disabled for flakiness, but neither the
flaky crashes nor the code which was crashing appear to exist anymore.

This CL makes some minor updates to the test expectations and re-enables
the test.

Bug: 140976,841827
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo
Change-Id: I97879b51e600cff684defcbef37fcfbae3dfda62
Reviewed-on: https://chromium-review.googlesource.com/1076683Reviewed-by: default avatarKaran Bhatia <karandeepb@chromium.org>
Commit-Queue: Ken Rockot <rockot@chromium.org>
Cr-Commit-Position: refs/heads/master@{#562546}
parent ef2d15e4
...@@ -438,9 +438,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionWebRequestApiTest, ...@@ -438,9 +438,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionWebRequestApiTest,
message_; message_;
} }
// Flaky (sometimes crash): http://crbug.com/140976 IN_PROC_BROWSER_TEST_F(ExtensionWebRequestApiTest, WebRequestAuthRequired) {
IN_PROC_BROWSER_TEST_F(ExtensionWebRequestApiTest,
DISABLED_WebRequestAuthRequired) {
CancelLoginDialog login_dialog_helper; CancelLoginDialog login_dialog_helper;
ASSERT_TRUE(StartEmbeddedTestServer()); ASSERT_TRUE(StartEmbeddedTestServer());
......
...@@ -55,6 +55,7 @@ runTests([ ...@@ -55,6 +55,7 @@ runTests([
challenger: {host: testServer, port: testServerPort}, challenger: {host: testServer, port: testServerPort},
responseHeadersExist: true, responseHeadersExist: true,
statusLine: "HTTP/1.1 401 Unauthorized", statusLine: "HTTP/1.1 401 Unauthorized",
statusCode: 401,
} }
}, },
{ label: "onResponseStarted", { label: "onResponseStarted",
...@@ -134,6 +135,7 @@ runTests([ ...@@ -134,6 +135,7 @@ runTests([
challenger: {host: testServer, port: testServerPort}, challenger: {host: testServer, port: testServerPort},
responseHeadersExist: true, responseHeadersExist: true,
statusLine: "HTTP/1.1 401 Unauthorized", statusLine: "HTTP/1.1 401 Unauthorized",
statusCode: 401,
} }
}, },
{ label: "onResponseStarted", { label: "onResponseStarted",
...@@ -215,6 +217,7 @@ runTests([ ...@@ -215,6 +217,7 @@ runTests([
challenger: {host: testServer, port: testServerPort}, challenger: {host: testServer, port: testServerPort},
responseHeadersExist: true, responseHeadersExist: true,
statusLine: "HTTP/1.1 401 Unauthorized", statusLine: "HTTP/1.1 401 Unauthorized",
statusCode: 401,
}, },
retval: {cancel: true} retval: {cancel: true}
}, },
...@@ -298,6 +301,7 @@ runTests([ ...@@ -298,6 +301,7 @@ runTests([
challenger: {host: testServer, port: testServerPort}, challenger: {host: testServer, port: testServerPort},
responseHeadersExist: true, responseHeadersExist: true,
statusLine: "HTTP/1.1 401 Unauthorized", statusLine: "HTTP/1.1 401 Unauthorized",
statusCode: 401,
}, },
retval: {authCredentials: {username: "foo", password: "secret"}} retval: {authCredentials: {username: "foo", password: "secret"}}
}, },
...@@ -379,6 +383,7 @@ runTests([ ...@@ -379,6 +383,7 @@ runTests([
challenger: {host: testServer, port: testServerPort}, challenger: {host: testServer, port: testServerPort},
responseHeadersExist: true, responseHeadersExist: true,
statusLine: "HTTP/1.1 401 Unauthorized", statusLine: "HTTP/1.1 401 Unauthorized",
statusCode: 401,
} }
}, },
{ label: "onResponseStarted", { label: "onResponseStarted",
...@@ -460,6 +465,7 @@ runTests([ ...@@ -460,6 +465,7 @@ runTests([
challenger: {host: testServer, port: testServerPort}, challenger: {host: testServer, port: testServerPort},
responseHeadersExist: true, responseHeadersExist: true,
statusLine: "HTTP/1.1 401 Unauthorized", statusLine: "HTTP/1.1 401 Unauthorized",
statusCode: 401,
}, },
retval: {cancel: true} retval: {cancel: true}
}, },
...@@ -543,6 +549,7 @@ runTests([ ...@@ -543,6 +549,7 @@ runTests([
challenger: {host: testServer, port: testServerPort}, challenger: {host: testServer, port: testServerPort},
responseHeadersExist: true, responseHeadersExist: true,
statusLine: "HTTP/1.1 401 Unauthorized", statusLine: "HTTP/1.1 401 Unauthorized",
statusCode: 401,
}, },
retval: {authCredentials: {username: "foo", password: "secret"}} retval: {authCredentials: {username: "foo", password: "secret"}}
}, },
......
...@@ -143,6 +143,7 @@ ...@@ -143,6 +143,7 @@
# http://crbug.com/841827 # http://crbug.com/841827
-BackgroundXhrTest.HttpAuth -BackgroundXhrTest.HttpAuth
-BackgroundXhrTest.TlsClientAuth -BackgroundXhrTest.TlsClientAuth
-ExtensionWebRequestApiTest.WebRequestAuthRequired
# https://crbug.com/721400 # https://crbug.com/721400
# WebSocket with the network service # WebSocket with the network service
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment