From bef5795428c8aa6477d67e01f0f84f5a02f737c1 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 10 Jun 2026 11:35:32 +0200 Subject: bitbucket: rename "username" to "email" It's Atlassian emails instead of usernames now. --- test/set_credentials.sh | 4 +++- test/unit/test_bitbucket.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/set_credentials.sh b/test/set_credentials.sh index 1d8fd87..ec6e45a 100644 --- a/test/set_credentials.sh +++ b/test/set_credentials.sh @@ -1,3 +1,5 @@ +IFS= read -r -s -p 'Bitbucket email: ' CGITIZE_BITBUCKET_EMAIL +echo IFS= read -r -s -p 'Bitbucket token: ' CGITIZE_BITBUCKET_TOKEN echo IFS= read -r -s -p 'GitHub token: ' CGITIZE_GITHUB_TOKEN @@ -5,7 +7,7 @@ echo IFS= read -r -s -p 'GitLab token: ' CGITIZE_GITLAB_TOKEN echo -export CGITIZE_BITBUCKET_USERNAME=cgitize-test +export CGITIZE_BITBUCKET_EMAIL export CGITIZE_BITBUCKET_TOKEN export CGITIZE_GITHUB_USERNAME=cgitize-test export CGITIZE_GITHUB_TOKEN diff --git a/test/unit/test_bitbucket.py b/test/unit/test_bitbucket.py index 26e86bf..e81cdef 100644 --- a/test/unit/test_bitbucket.py +++ b/test/unit/test_bitbucket.py @@ -13,7 +13,7 @@ from requests.exceptions import HTTPError class BitbucketTests(unittest.TestCase): def setUp(self): self.bitbucket = Cloud( - username=os.environ.get('CGITIZE_BITBUCKET_USERNAME'), + username=os.environ.get('CGITIZE_BITBUCKET_EMAIL'), password=os.environ.get('CGITIZE_BITBUCKET_TOKEN'), cloud=True, ) -- cgit v1.3