Unit Test Outside_cnn_dot_com failed.

Jan 12, 2015 at 7:29 AM
Shall we expect 302 in this test case?
As I tested, www.cnn.com does redirect http request.

TEST_FIXTURE(uri_address, outside_cnn_dot_com,
50 "Ignore", "Manual")
51 {
52 http_client client(U("http://www.cnn.com"));
53

54 // CNN's main page doesn't use chunked transfer encoding.
55 http_response response = client.request(methods::GET).get();
56 VERIFY_ARE_EQUAL(status_codes::OK, response.status_code());
57 while(response.body().streambuf().in_avail() == 0);
58 casablanca_printf(U("CNN Main page: %s\n"), response.to_string().c_str());
59

60 // CNN's other pages do use chunked transfer encoding.
61 response = client.request(methods::GET, U("US")).get();
62 VERIFY_ARE_EQUAL(status_codes::OK, response.status_code());
63 while(response.body().streambuf().in_avail() == 0);
64 casablanca_printf(U("CNN US page: %s\n"), response.to_string().c_str());
65 }
Coordinator
Jan 12, 2015 at 7:37 PM
Hi evanc,

Yes something changed on the cnn site we use for this test case. It has already been addressed in the 'development' branch and is now passing. You can safely ignore this.

Steve