From 8c1188578b507f0b893782bd9b6c028916558c8b Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Thu, 18 Jul 2024 19:03:02 +0200 Subject: [PATCH 1/2] use a dummy value for the token --- .../rest/access-tokens/1.0/users/ksmster/newtoken.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wsmaster/che-core-api-factory-bitbucket-server/src/test/resources/__files/bitbucket/rest/access-tokens/1.0/users/ksmster/newtoken.json b/wsmaster/che-core-api-factory-bitbucket-server/src/test/resources/__files/bitbucket/rest/access-tokens/1.0/users/ksmster/newtoken.json index dc41054388c..a7702ba240e 100644 --- a/wsmaster/che-core-api-factory-bitbucket-server/src/test/resources/__files/bitbucket/rest/access-tokens/1.0/users/ksmster/newtoken.json +++ b/wsmaster/che-core-api-factory-bitbucket-server/src/test/resources/__files/bitbucket/rest/access-tokens/1.0/users/ksmster/newtoken.json @@ -23,5 +23,5 @@ ] } }, - "token": "MTU4OTEwNTMyOTA5Ohc88HcY8k7gWOzl2mP5TtdtY5Qs" -} \ No newline at end of file + "token": "xxxx" +} From e6e586b00f0a0b28912377d4f60462b04cfe77e1 Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Thu, 18 Jul 2024 19:05:09 +0200 Subject: [PATCH 2/2] Update corresponding test class --- .../server/bitbucket/HttpBitbucketServerApiClientTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wsmaster/che-core-api-factory-bitbucket-server/src/test/java/org/eclipse/che/api/factory/server/bitbucket/HttpBitbucketServerApiClientTest.java b/wsmaster/che-core-api-factory-bitbucket-server/src/test/java/org/eclipse/che/api/factory/server/bitbucket/HttpBitbucketServerApiClientTest.java index 54cdf4d6147..8adeb3e57b2 100644 --- a/wsmaster/che-core-api-factory-bitbucket-server/src/test/java/org/eclipse/che/api/factory/server/bitbucket/HttpBitbucketServerApiClientTest.java +++ b/wsmaster/che-core-api-factory-bitbucket-server/src/test/java/org/eclipse/che/api/factory/server/bitbucket/HttpBitbucketServerApiClientTest.java @@ -331,7 +331,7 @@ public void shouldBeAbleToGetExistedPAT() BitbucketPersonalAccessToken result = bitbucketServer.getPersonalAccessToken("5", "token"); // then assertNotNull(result); - assertEquals(result.getToken(), "MTU4OTEwNTMyOTA5Ohc88HcY8k7gWOzl2mP5TtdtY5Qs"); + assertEquals(result.getToken(), "xxxx"); } @Test(expectedExceptions = ScmItemNotFoundException.class)