Set renewal server on command line for tests
[ Merge of http://go/wvgerrit/110903 ] This CL adds the ability to set the renewal server on the command line, and adds some comments to the build scripts' README file to explain how to test a server rollout. Bug: 173031207 Test: WV unit/integration tests Change-Id: Ibe71e77469c94601627fb85a1ad4654553d3eb1a Change-Id: I7e9bfc873c78e26c0cece113dc8a3d08cd9163db
This commit is contained in:
@@ -93,6 +93,19 @@ void show_menu(const char* prog_name, const std::string& extra_help_text) {
|
||||
<< " in the url" << std::endl
|
||||
<< std::endl;
|
||||
|
||||
std::cout << " --renewal_server_url=<url>" << std::endl;
|
||||
std::cout << " configure the renewal server url, please include http[s] "
|
||||
"in the url"
|
||||
<< std::endl
|
||||
<< " If not set, this defaults to be the same url used by the "
|
||||
"license server."
|
||||
<< std::endl
|
||||
<< " Some tests, such as LicenseRenewalSpecifiedServer, will "
|
||||
"ignore this setting. "
|
||||
<< std::endl
|
||||
<< " See comments in the code for an explanation." << std::endl
|
||||
<< std::endl;
|
||||
|
||||
std::cout << " --provisioning_server_url=<url>" << std::endl;
|
||||
std::cout
|
||||
<< " configure the provisioning server url, please include http[s]"
|
||||
@@ -457,6 +470,8 @@ bool WvCdmTestBase::Initialize(int argc, const char* const argv[],
|
||||
default_config_.set_provisioning_service_certificate(certificate);
|
||||
} else if (arg_prefix == "--license_server_url") {
|
||||
default_config_.set_license_server(arg_value);
|
||||
} else if (arg_prefix == "--renewal_server_url") {
|
||||
default_config_.set_renewal_server(arg_value);
|
||||
} else if (arg_prefix == "--provisioning_server_url") {
|
||||
default_config_.set_provisioning_server(arg_value);
|
||||
} else {
|
||||
@@ -480,6 +495,8 @@ bool WvCdmTestBase::Initialize(int argc, const char* const argv[],
|
||||
<< default_config_.provisioning_server() << std::endl;
|
||||
std::cout << "Default License Server: " << default_config_.license_server()
|
||||
<< std::endl;
|
||||
std::cout << "Default Renewal Server: " << default_config_.renewal_server()
|
||||
<< std::endl;
|
||||
std::cout << "Default KeyID: " << default_config_.key_id() << std::endl
|
||||
<< std::endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user