diff options
author | David Ostrovsky <david@ostrovsky.org> | 2021-04-05 19:44:50 +0200 |
---|---|---|
committer | David Ostrovsky <david@ostrovsky.org> | 2021-04-05 19:44:50 +0200 |
commit | 04e679ac6aeb9bf85a6ab714ffd90e65cd24c586 (patch) | |
tree | 06b7e28953134571649549569d0324b9fbe8d557 | |
parent | 65a4d84f88ff39792d56c8439248c32ae8856b3d (diff) | |
parent | afcf3f459116cf6a2c1529cf0f391b2804280791 (diff) |
Merge branch 'stable-3.3'
* stable-3.3:
OpenID: Remove support for Yahoo! OpenID provider
e2e-tests: Add a force option to delete project scenario
Set version to 3.3.4-SNAPSHOT
Set version to 3.3.3
Set version to 3.2.9-SNAPSHOT
Set version to 3.2.8
Set version to 3.1.14-SNAPSHOT
Set version to 3.1.13
Change-Id: Ib991dfc2b7228c5673a498b78da0f52bd588d56a
6 files changed, 11 insertions, 12 deletions
diff --git a/Documentation/config-sso.txt b/Documentation/config-sso.txt index 14399a3214..37ab0c089b 100644 --- a/Documentation/config-sso.txt +++ b/Documentation/config-sso.txt @@ -44,9 +44,9 @@ will match any OpenID provider on the Internet: * `http://` -- trust all OpenID providers using the HTTP protocol * `https://` -- trust all OpenID providers using the HTTPS protocol -To trust only Yahoo!: +To trust only Launchpad: ---- - git config --file $site_path/etc/gerrit.config auth.trustedOpenID https://me.yahoo.com + git config --file $site_path/etc/gerrit.config auth.trustedOpenID https://login.launchpad.net/+openid ---- === Database Schema diff --git a/e2e-tests/src/test/resources/data/com/google/gerrit/scenarios/DeleteProject-body.json b/e2e-tests/src/test/resources/data/com/google/gerrit/scenarios/DeleteProject-body.json new file mode 100644 index 0000000000..488de6de53 --- /dev/null +++ b/e2e-tests/src/test/resources/data/com/google/gerrit/scenarios/DeleteProject-body.json @@ -0,0 +1,3 @@ +{ + "force": "${force_project_deletion}" +} diff --git a/e2e-tests/src/test/scala/com/google/gerrit/scenarios/DeleteProject.scala b/e2e-tests/src/test/scala/com/google/gerrit/scenarios/DeleteProject.scala index 17526348bc..eb4df30193 100644 --- a/e2e-tests/src/test/scala/com/google/gerrit/scenarios/DeleteProject.scala +++ b/e2e-tests/src/test/scala/com/google/gerrit/scenarios/DeleteProject.scala @@ -20,6 +20,7 @@ import io.gatling.core.structure.ScenarioBuilder class DeleteProject extends ProjectSimulation { private val data: FeederBuilder = jsonFile(resource).convert(keys).queue + private val forceKey = "force_project_deletion" def this(projectName: String) { this() @@ -28,7 +29,10 @@ class DeleteProject extends ProjectSimulation { val test: ScenarioBuilder = scenario(uniqueName) .feed(data) - .exec(httpRequest) + .exec(session => { + session.set(forceKey, getProperty(forceKey, "false")) + }) + .exec(httpRequest.body(ElFileBody(body)).asJson) setUp( test.inject( diff --git a/java/com/google/gerrit/common/auth/openid/OpenIdUrls.java b/java/com/google/gerrit/common/auth/openid/OpenIdUrls.java index 713fd4dc39..16dfb9b5e1 100644 --- a/java/com/google/gerrit/common/auth/openid/OpenIdUrls.java +++ b/java/com/google/gerrit/common/auth/openid/OpenIdUrls.java @@ -18,5 +18,4 @@ public class OpenIdUrls { public static final String LASTID_COOKIE = "gerrit.last_openid"; public static final String URL_LAUNCHPAD = "https://login.launchpad.net/+openid"; - public static final String URL_YAHOO = "https://me.yahoo.com"; } diff --git a/java/com/google/gerrit/httpd/auth/openid/LoginForm.java b/java/com/google/gerrit/httpd/auth/openid/LoginForm.java index 283cd505f0..0b6008c1a0 100644 --- a/java/com/google/gerrit/httpd/auth/openid/LoginForm.java +++ b/java/com/google/gerrit/httpd/auth/openid/LoginForm.java @@ -59,9 +59,7 @@ class LoginForm extends HttpServlet { private static final FluentLogger logger = FluentLogger.forEnclosingClass(); private static final ImmutableMap<String, String> ALL_PROVIDERS = - ImmutableMap.of( - "launchpad", OpenIdUrls.URL_LAUNCHPAD, - "yahoo", OpenIdUrls.URL_YAHOO); + ImmutableMap.of("launchpad", OpenIdUrls.URL_LAUNCHPAD); private final ImmutableSet<String> suggestProviders; private final Provider<String> urlProvider; diff --git a/resources/com/google/gerrit/httpd/auth/openid/LoginForm.html b/resources/com/google/gerrit/httpd/auth/openid/LoginForm.html index 4923143422..efd760fb67 100644 --- a/resources/com/google/gerrit/httpd/auth/openid/LoginForm.html +++ b/resources/com/google/gerrit/httpd/auth/openid/LoginForm.html @@ -75,11 +75,6 @@ <a href="?id=https://login.launchpad.net/%2Bopenid" id="id_launchpad">Sign in with a Launchpad ID</a> </div> - <div id="provider_yahoo"> - <img height="16" width="16" src="data:image/gif;base64,R0lGODlhEAAQAPECAAAAAP8AAP///8zMzCH5BAEAAAMALAAAAAAQABAAAAIqnI+py30BY3AgAjCkfJDjiIAQlgUkNxqWkqrm0honKk7KhZOzw/f+fygAADs=" /> - <a href="?id=https://me.yahoo.com" id="id_yahoo">Sign in with a Yahoo! ID</a> - </div> - <div style="margin-top: 25px;"> <h2>What is OpenID?</h2> <p>OpenID provides secure single-sign-on, without revealing your passwords to this website.</p> |