-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update nginx to 1.15.9 * Update servicecontrol_client sha
- Loading branch information
Showing
5 changed files
with
42 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -976,15 +976,6 @@ static const char kServiceConfigWithoutAuthz[] = R"( | |
name: "Service.Name" | ||
)"; | ||
|
||
static const char kServiceConfigWithAuthz[] = R"( | ||
name: "Service.Name" | ||
experimental { | ||
authorization { | ||
provider: "[email protected]" | ||
} | ||
} | ||
)"; | ||
|
||
static const char kServerConfigWithoutAuthz[] = R"( | ||
service_control_config { | ||
check_aggregator_config { | ||
|
@@ -1005,26 +996,6 @@ static const char kServerConfigWithAuthz[] = R"( | |
} | ||
)"; | ||
|
||
TEST(Config, TestFirebaseServerCheckWithServiceAuthzWithoutServerAuthz) { | ||
MockApiManagerEnvironmentWithLog env; | ||
|
||
std::unique_ptr<Config> config = | ||
Config::Create(&env, kServiceConfigWithAuthz, kServerConfigWithoutAuthz); | ||
ASSERT_TRUE(config); | ||
|
||
ASSERT_EQ(config->GetFirebaseServer(), "[email protected]"); | ||
} | ||
|
||
TEST(Config, TestFirebaseServerCheckWithServiceAuthzWithServerAuthz) { | ||
MockApiManagerEnvironmentWithLog env; | ||
|
||
std::unique_ptr<Config> config = | ||
Config::Create(&env, kServiceConfigWithAuthz, kServerConfigWithAuthz); | ||
ASSERT_TRUE(config); | ||
|
||
ASSERT_EQ(config->GetFirebaseServer(), "https://myfirebaseserver.com"); | ||
} | ||
|
||
TEST(Config, TestFirebaseServerCheckWithoutServiceAuthzWithoutServerAuthz) { | ||
MockApiManagerEnvironmentWithLog env; | ||
|
||
|
@@ -1048,7 +1019,7 @@ TEST(Config, TestFirebaseServerCheckWithoutServiceConfigWithServerConfig) { | |
TEST(Config, TestFirebaseServerAudience) { | ||
MockApiManagerEnvironmentWithLog env; | ||
std::unique_ptr<Config> config = | ||
Config::Create(&env, kServiceConfigWithAuthz, kServerConfigWithAuthz); | ||
Config::Create(&env, kServiceConfigWithoutAuthz, kServerConfigWithAuthz); | ||
ASSERT_TRUE(config); | ||
|
||
ASSERT_EQ(config->GetFirebaseAudience(), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters