Revert TestCheckProjectsHostnames
Undo mechanical changes from f4b69b4660624aaa741b20d71da75ef35dfa6b54
that inadvertently caused this test to fail.
Bug: 69353
Change-Id: Iaeb4ede11445d526c243dfb932ea197c949f8596
Reviewed-on: https://fuchsia-review.googlesource.com/c/jiri/+/482884
Reviewed-by: Marc-Antoine Ruel <maruel@google.com>
diff --git a/project/project_test.go b/project/project_test.go
index cea7e51..8a6ee8c 100644
--- a/project/project_test.go
+++ b/project/project_test.go
@@ -2578,16 +2578,16 @@
func TestHostnameAllowed(t *testing.T) {
t.Parallel()
tests := map[string]bool{
- "*.google.com,fuchsia.google.com": true,
- "*.google.com,fuchsia.dev.google.com": true,
- "google.com,google.com": true,
- "*google.com,fuchsiagoogle.com": true,
- "google.com,fuchsiagoogle.com": false,
- "google.com,oogle.com": false,
- "fuchsia-internal,fuchsia-internal": true,
- "fuchsia-internal,fuchsia": false,
- ",": true,
- "*google*.com,go.fuchsia.dev": false,
+ "*.google.com,fuchsia.google.com": true,
+ "*.google.com,fuchsia.dev.google.com": true,
+ "google.com,google.com": true,
+ "*google.com,fuchsiagoogle.com": true,
+ "google.com,fuchsiagoogle.com": false,
+ "google.com,oogle.com": false,
+ "fuchsia-internal,fuchsia-internal": true,
+ "fuchsia-internal,fuchsia": false,
+ ",": true,
+ "*google*.com,fuchsia.googlesource.com": false,
}
for k, v := range tests {
test := strings.Split(k, ",")
@@ -2614,7 +2614,7 @@
testProjectListsTrue := []project.Project{
{
Name: "project1",
- Remote: "https://go.fuchsia.dev/project1",
+ Remote: "https://fuchsia.googlesource.com/project1",
},
{
Name: "project2",
@@ -2628,7 +2628,7 @@
testProjectListsFalse := []project.Project{
{
Name: "project1",
- Remote: "https://go.fuchsia.dev/project1",
+ Remote: "https://fuchsia.googlesource.com/project1",
},
{
Name: "project2",