Skip LicenseRenewalSpecifiedServer for local license server am: 95ff0f14fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/12967004 Change-Id: I2d14047d74d13b118777f415c3ca0137a1cac559
This commit is contained in:
@@ -405,7 +405,18 @@ TEST_F(WvCdmEngineTest, LicenseRenewalSpecifiedServer) {
|
||||
VerifyNewKeyResponse(config_.license_server(), config_.client_auth());
|
||||
|
||||
GenerateRenewalRequest();
|
||||
VerifyRenewalKeyResponse(server_url_, config_.client_auth());
|
||||
if (!server_url_.empty()) {
|
||||
// If the license server put a URL for the renewal in the license, we should
|
||||
// be able to verify the renewal against that server.
|
||||
VerifyRenewalKeyResponse(server_url_, config_.client_auth());
|
||||
} else {
|
||||
// If the license server did not give us a URL, we won't verify it.
|
||||
LOGE("License server did not set renewal URL. license_url=%s.",
|
||||
config_.license_server().c_str());
|
||||
// This is OK when you are using a local, debug, license server, but it
|
||||
// should NOT happen if using UAT or UAT nightly.
|
||||
EXPECT_EQ(std::string::npos, config_.license_server().find("proxy.uat"));
|
||||
}
|
||||
}
|
||||
|
||||
// This test generates a renewal and then requests the renewal from the same
|
||||
|
||||
Reference in New Issue
Block a user