From eac9a010bdeacca20967168abb13ff6bce284835 Mon Sep 17 00:00:00 2001 From: Theofilos Petsios Date: Fri, 7 Oct 2022 13:29:30 -0400 Subject: [PATCH] Rename whitelist to allowlist in oauth class selectors --- scrape/apps.go | 4 ++-- scrape/testdata/access-restrictions-disabled.html | 2 +- scrape/testdata/access-restrictions-enabled.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scrape/apps.go b/scrape/apps.go index e8d810db273..0ac16c750aa 100644 --- a/scrape/apps.go +++ b/scrape/apps.go @@ -28,7 +28,7 @@ func (c *Client) AppRestrictionsEnabled(org string) (bool, error) { return false, err } - s := doc.Find(".oauth-application-whitelist svg").First() + s := doc.Find(".oauth-application-allowlist svg").First() if s.Length() == 0 { return false, errors.New("unable to find expected markup") } @@ -52,7 +52,7 @@ func (c *Client) ListOAuthApps(org string) ([]OAuthApp, error) { } var apps []OAuthApp - doc.Find(".oauth-application-whitelist ul > li").Each(func(i int, s *goquery.Selection) { + doc.Find(".oauth-application-allowlist ul > li").Each(func(i int, s *goquery.Selection) { var app OAuthApp app.Name = s.Find(".request-info strong").First().Text() app.Description = s.Find(".request-info .application-description").Text() diff --git a/scrape/testdata/access-restrictions-disabled.html b/scrape/testdata/access-restrictions-disabled.html index a5fbe34cabd..e5431e14c60 100644 --- a/scrape/testdata/access-restrictions-disabled.html +++ b/scrape/testdata/access-restrictions-disabled.html @@ -12,7 +12,7 @@
-
+

Third-party application access policy

diff --git a/scrape/testdata/access-restrictions-enabled.html b/scrape/testdata/access-restrictions-enabled.html index 4b8d1db816c..d5b869c79d1 100644 --- a/scrape/testdata/access-restrictions-enabled.html +++ b/scrape/testdata/access-restrictions-enabled.html @@ -14,7 +14,7 @@

-
+

Third-party application access policy