瀏覽代碼

registry: rename v1-endpoint tests to have a common prefix

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 2 年之前
父節點
當前提交
f1a7028900
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      registry/endpoint_test.go

+ 3 - 3
registry/endpoint_test.go

@@ -14,7 +14,7 @@ import (
 	"gotest.tools/v3/skip"
 )
 
-func TestPingRegistryEndpoint(t *testing.T) {
+func TestV1EndpointPing(t *testing.T) {
 	skip.If(t, os.Getuid() != 0, "skipping test that requires root")
 	testPing := func(index *registry.IndexInfo, expectedStandalone bool, assertMessage string) {
 		ep, err := newV1Endpoint(index, nil)
@@ -34,7 +34,7 @@ func TestPingRegistryEndpoint(t *testing.T) {
 	testPing(makePublicIndex(), false, "Expected standalone to be false for public index")
 }
 
-func TestEndpoint(t *testing.T) {
+func TestV1Endpoint(t *testing.T) {
 	skip.If(t, os.Getuid() != 0, "skipping test that requires root")
 	// Simple wrapper to fail test if err != nil
 	expandEndpoint := func(index *registry.IndexInfo) *v1Endpoint {
@@ -158,7 +158,7 @@ func TestV1EndpointParse(t *testing.T) {
 
 // Ensure that a registry endpoint that responds with a 401 only is determined
 // to be a valid v1 registry endpoint
-func TestValidateEndpoint(t *testing.T) {
+func TestV1EndpointValidate(t *testing.T) {
 	requireBasicAuthHandler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
 		w.Header().Add("WWW-Authenticate", `Basic realm="localhost"`)
 		w.WriteHeader(http.StatusUnauthorized)