Updated symbol 'framework.GetMasterHost' to not use word 'master'

This commit is contained in:
Vishwanath Sangale
2020-09-29 21:05:39 -07:00
parent 4b24dca228
commit 395a6d89f6
12 changed files with 27 additions and 27 deletions

View File

@@ -166,11 +166,11 @@ var RunID = uuid.NewUUID()
// CreateTestingNSFn is a func that is responsible for creating namespace used for executing e2e tests.
type CreateTestingNSFn func(baseName string, c clientset.Interface, labels map[string]string) (*v1.Namespace, error)
// GetMasterHost returns a hostname of a master.
func GetMasterHost() string {
masterURL, err := url.Parse(TestContext.Host)
// APIAddress returns a address of an instance.
func APIAddress() string {
instanceURL, err := url.Parse(TestContext.Host)
ExpectNoError(err)
return masterURL.Hostname()
return instanceURL.Hostname()
}
// ProviderIs returns true if the provider is included is the providers. Otherwise false.