Skip to content

Commit e45c3c5

Browse files
authored
refactor: rename github test repository: test-github-bridge (#1256)
This change renames references to the repository used to test the github bridge from `git-bug-test-github-bridge` to `test-github-bridge`, dropping the `git-bug` prefix as it is extraneous now that it is under the `git-bug` organization. Change-Id: I5795bd39cc3b2e81774c4d9676ae5cbabfba8f1c
1 parent 0804744 commit e45c3c5

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

bridge/github/config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func TestValidateProject(t *testing.T) {
191191
{
192192
name: "private repository and token with scope 'repo'",
193193
args: args{
194-
project: "git-bug-test-github-bridge",
194+
project: "test-github-bridge",
195195
owner: "git-bug",
196196
token: tokenPrivate,
197197
},
@@ -200,7 +200,7 @@ func TestValidateProject(t *testing.T) {
200200
{
201201
name: "private repository and token with scope 'public_repo'",
202202
args: args{
203-
project: "git-bug-test-github-bridge",
203+
project: "test-github-bridge",
204204
owner: "git-bug",
205205
token: tokenPublic,
206206
},

bridge/github/import_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func TestGithubImporter(t *testing.T) {
4848
}{
4949
{
5050
name: "simple issue",
51-
url: "https://github.com/git-bug/git-bug-test-github-bridge/issues/1",
51+
url: "https://github.com/git-bug/test-github-bridge/issues/1",
5252
bug: &bug.Snapshot{
5353
Operations: []dag.Operation{
5454
bug.NewCreateOp(author, 0, "simple issue", "initial comment", nil),
@@ -59,7 +59,7 @@ func TestGithubImporter(t *testing.T) {
5959
},
6060
{
6161
name: "empty issue",
62-
url: "https://github.com/git-bug/git-bug-test-github-bridge/issues/2",
62+
url: "https://github.com/git-bug/test-github-bridge/issues/2",
6363
bug: &bug.Snapshot{
6464
Operations: []dag.Operation{
6565
bug.NewCreateOp(author, 0, "empty issue", "", nil),
@@ -68,7 +68,7 @@ func TestGithubImporter(t *testing.T) {
6868
},
6969
{
7070
name: "complex issue",
71-
url: "https://github.com/git-bug/git-bug-test-github-bridge/issues/3",
71+
url: "https://github.com/git-bug/test-github-bridge/issues/3",
7272
bug: &bug.Snapshot{
7373
Operations: []dag.Operation{
7474
bug.NewCreateOp(author, 0, "complex issue", "initial comment", nil),
@@ -112,7 +112,7 @@ func TestGithubImporter(t *testing.T) {
112112
},
113113
{
114114
name: "editions",
115-
url: "https://github.com/git-bug/git-bug-test-github-bridge/issues/4",
115+
url: "https://github.com/git-bug/test-github-bridge/issues/4",
116116
bug: &bug.Snapshot{
117117
Operations: []dag.Operation{
118118
bug.NewCreateOp(author, 0, "editions", "initial comment edited", nil),
@@ -124,7 +124,7 @@ func TestGithubImporter(t *testing.T) {
124124
},
125125
{
126126
name: "comment deletion",
127-
url: "https://github.com/git-bug/git-bug-test-github-bridge/issues/5",
127+
url: "https://github.com/git-bug/test-github-bridge/issues/5",
128128
bug: &bug.Snapshot{
129129
Operations: []dag.Operation{
130130
bug.NewCreateOp(author, 0, "comment deletion", "", nil),
@@ -133,7 +133,7 @@ func TestGithubImporter(t *testing.T) {
133133
},
134134
{
135135
name: "edition deletion",
136-
url: "https://github.com/git-bug/git-bug-test-github-bridge/issues/6",
136+
url: "https://github.com/git-bug/test-github-bridge/issues/6",
137137
bug: &bug.Snapshot{
138138
Operations: []dag.Operation{
139139
bug.NewCreateOp(author, 0, "edition deletion", "initial comment", nil),
@@ -145,7 +145,7 @@ func TestGithubImporter(t *testing.T) {
145145
},
146146
{
147147
name: "hidden comment",
148-
url: "https://github.com/git-bug/git-bug-test-github-bridge/issues/7",
148+
url: "https://github.com/git-bug/test-github-bridge/issues/7",
149149
bug: &bug.Snapshot{
150150
Operations: []dag.Operation{
151151
bug.NewCreateOp(author, 0, "hidden comment", "initial comment", nil),
@@ -155,7 +155,7 @@ func TestGithubImporter(t *testing.T) {
155155
},
156156
{
157157
name: "transferred issue",
158-
url: "https://github.com/git-bug/git-bug-test-github-bridge/issues/8",
158+
url: "https://github.com/git-bug/test-github-bridge/issues/8",
159159
bug: &bug.Snapshot{
160160
Operations: []dag.Operation{
161161
bug.NewCreateOp(author, 0, "transfered issue", "", nil),
@@ -164,7 +164,7 @@ func TestGithubImporter(t *testing.T) {
164164
},
165165
{
166166
name: "unicode control characters",
167-
url: "https://github.com/git-bug/git-bug-test-github-bridge/issues/10",
167+
url: "https://github.com/git-bug/test-github-bridge/issues/10",
168168
bug: &bug.Snapshot{
169169
Operations: []dag.Operation{
170170
bug.NewCreateOp(author, 0, "unicode control characters", "u0000: \nu0001: \nu0002: \nu0003: \nu0004: \nu0005: \nu0006: \nu0007: \nu0008: \nu0009: \t\nu0010: \nu0011: \nu0012: \nu0013: \nu0014: \nu0015: \nu0016: \nu0017: \nu0018: \nu0019:", nil),
@@ -186,7 +186,7 @@ func TestGithubImporter(t *testing.T) {
186186
importer := &githubImporter{}
187187
err = importer.Init(ctx, backend, core.Configuration{
188188
confKeyOwner: "git-bug",
189-
confKeyProject: "git-bug-test-github-bridge",
189+
confKeyProject: "test-github-bridge",
190190
confKeyDefaultLogin: login,
191191
})
192192
require.NoError(t, err)

0 commit comments

Comments
 (0)