Skip to content

Commit 8cdbaff

Browse files
committed
Revert "fix: Re-enable tests for Global config changes"
This reverts commit ba4a587.
1 parent c379ccd commit 8cdbaff

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

test/gitea_access_control_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ func TestGiteaACLCommentsAllowing(t *testing.T) {
270270
// the status of CI shows as success. Now non authorized user pushes to PR, the CI will again go to pending
271271
// and require /ok-to-test again from authorized user.
272272
func TestGiteaACLCommentsAllowingRememberOkToTestFalse(t *testing.T) {
273+
t.Skip("Skipping test changing the global config map for now")
274+
273275
ctx := context.Background()
274276
topts := &tgitea.TestOpts{
275277
TargetEvent: triggertype.PullRequest.String(),

test/gitea_params_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ func TestGiteaParamsStandardCheckForPushAndPullEvent(t *testing.T) {
7979
}
8080

8181
func TestGiteaParamsOnRepoCRWithCustomConsole(t *testing.T) {
82+
t.Skip("Skipping test changing the global config map for now")
8283
ctx := context.Background()
8384
topts := &tgitea.TestOpts{
8485
CheckForStatus: "success",

test/github_scope_token_to_list_of_private_public_repos_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ func TestGithubPullRequestScopeTokenToListOfRepos(t *testing.T) {
5555
}
5656

5757
func TestGithubPullRequestScopeTokenToListOfReposByGlobalConfiguration(t *testing.T) {
58+
t.Skip("Skipping test changing the global config map for now")
5859
if os.Getenv("NIGHTLY_E2E_TEST") != "true" {
5960
t.Skip("Skipping test since only enabled for nightly")
6061
}
@@ -182,7 +183,6 @@ func verifyGHTokenScope(t *testing.T, remoteTaskURL, remoteTaskName string, data
182183
runcnx.Clients.Log.Infof("Check if we have the repository set as succeeded")
183184
repo, err := runcnx.Clients.PipelineAsCode.PipelinesascodeV1alpha1().Repositories(targetNS).Get(ctx, targetNS, metav1.GetOptions{})
184185
assert.NilError(t, err)
185-
assert.Assert(t, len(repo.Status) > 0, "Repository status is empty, no status found")
186186
laststatus := repo.Status[len(repo.Status)-1]
187187
assert.Equal(t, corev1.ConditionTrue, laststatus.Conditions[0].Status)
188188
assert.Equal(t, sha, *laststatus.SHA)

0 commit comments

Comments
 (0)