Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
14 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2025 Red Hat, Inc.
* Copyright (c) 2012-2026 Red Hat, Inc.
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
Expand Down Expand Up @@ -95,10 +95,13 @@ public void testCreateAndSaveNewPATGitCredential() throws Exception {
"https://bitbucket.com",
"provider",
"cheUser",
null,
"username",
"token-name",
"tid-23434",
"token123");
"token123",
null,
0);

// when
kubernetesGitCredentialManager.createOrReplace(token);
Expand All @@ -120,12 +123,15 @@ public void shouldUseHardcodedUsernameIfScmOrganizationIsDefined() throws Except
PersonalAccessToken token =
new PersonalAccessToken(
"https://bitbucket-server.com:5648",
"provider",
"cheUser",
"cheOrganization",
"username",
"token-name",
"tid-23434",
"token123");
"token123",
null,
0);

Map<String, String> annotations = new HashMap<>(DEFAULT_SECRET_ANNOTATIONS);

Expand Down Expand Up @@ -182,10 +188,13 @@ public void testCreateAndSaveNewOAuthGitCredential() throws Exception {
"https://bitbucket.com",
"provider",
"cheUser",
null,
"username",
"oauth2-token-name",
"tid-23434",
"token123");
"token123",
null,
0);

// when
kubernetesGitCredentialManager.createOrReplace(token);
Expand Down Expand Up @@ -218,10 +227,13 @@ public void testCreateAndSaveNewBitbucketOAuthGitCredential() throws Exception {
"https://bitbucket.com",
"bitbucket",
"cheUser",
null,
"username",
"oauth2-token-name",
"tid-23434",
"token123");
"token123",
null,
0);

// when
kubernetesGitCredentialManager.createOrReplace(token);
Expand All @@ -244,10 +256,13 @@ public void testUpdateTokenInExistingCredential() throws Exception {
"https://bitbucket.com:5648",
"provider",
"cheUser",
null,
"username",
"token-name",
"tid-23434",
"token123");
"token123",
null,
0);

Map<String, String> annotations = new HashMap<>(DEFAULT_SECRET_ANNOTATIONS);

Expand Down
Loading
Loading