Replace get.docker.io -> get.docker.com and test.docker.io -> test.docker.com
Signed-off-by: Tibor Vass <teabee89@gmail.com>master
							parent
							
								
									b7da79fd14
								
							
						
					
					
						commit
						48b43c2645
					
				| 
						 | 
					@ -243,14 +243,14 @@ func TestValidRepositoryName(t *testing.T) {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func TestTrustedLocation(t *testing.T) {
 | 
					func TestTrustedLocation(t *testing.T) {
 | 
				
			||||||
	for _, url := range []string{"http://example.com", "https://example.com:7777", "http://docker.io", "http://test.docker.io", "https://fakedocker.com"} {
 | 
						for _, url := range []string{"http://example.com", "https://example.com:7777", "http://docker.io", "http://test.docker.com", "https://fakedocker.com"} {
 | 
				
			||||||
		req, _ := http.NewRequest("GET", url, nil)
 | 
							req, _ := http.NewRequest("GET", url, nil)
 | 
				
			||||||
		if trustedLocation(req) == true {
 | 
							if trustedLocation(req) == true {
 | 
				
			||||||
			t.Fatalf("'%s' shouldn't be detected as a trusted location", url)
 | 
								t.Fatalf("'%s' shouldn't be detected as a trusted location", url)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	for _, url := range []string{"https://docker.io", "https://test.docker.io:80"} {
 | 
						for _, url := range []string{"https://docker.io", "https://test.docker.com:80"} {
 | 
				
			||||||
		req, _ := http.NewRequest("GET", url, nil)
 | 
							req, _ := http.NewRequest("GET", url, nil)
 | 
				
			||||||
		if trustedLocation(req) == false {
 | 
							if trustedLocation(req) == false {
 | 
				
			||||||
			t.Fatalf("'%s' should be detected as a trusted location", url)
 | 
								t.Fatalf("'%s' should be detected as a trusted location", url)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue