package config

import (
	"testing"
)

func TestThirdPartyImage(t *testing.T) {
	name := "tnir/mysqlclient"
	version := "20201014"
	want := "gcr.io/pingcap-public/third-party/tnir/mysqlclient:20201014"
	got := GetThirdPartyImage(name, version)
	if got != want {
		t.Fatalf("want %s, but got %s", want, got)
	}
}
