func (s *searchBlackBoxTest) TestAutoRegisterHostURL() {
	// service := getServiceAsUser(s.testIdentity)
	wiCtrl := NewWorkitemController(s.svc, gormapplication.NewGormDB(s.DB), s.Configuration)
	// create a WI, search by `list view URL` of newly created item
	newWI := s.getWICreatePayload()
	_, wi := test.CreateWorkitemCreated(s.T(), s.svc.Context, s.svc, wiCtrl, newWI.Data.Relationships.Space.Data.ID.String(), newWI)
	require.NotNil(s.T(), wi)
	customHost := "own.domain.one"
	queryString := fmt.Sprintf("http://%s/work-item/list/detail/%s", customHost, *wi.Data.ID)
	s.verifySearchByKnownURLs(wi, customHost, queryString)

	// Search by `board view URL` of newly created item
	customHost2 := "own.domain.two"
	queryString2 := fmt.Sprintf("http://%s/work-item/board/detail/%s", customHost2, *wi.Data.ID)
	s.verifySearchByKnownURLs(wi, customHost2, queryString2)
}
// TestAutoRegisterHostURL checks if client's host is neatly registered as a KnwonURL or not
// Uses helper functions verifySearchByKnownURLs, searchByURL, getWICreatePayload
TestAutoRegisterHostURL checks if client's host is neatly registered as a KnwonURL or not
Uses helper functions verifySearchByKnownURLs, searchByURL, getWICreatePayload
// TestAutoRegisterHostURL checks if client ' s host is neatly registered as a KnwonURL or not // Uses helper functions verifySearchByKnownURLs searchByURL getWICreatePayload
func (s *searchBlackBoxTest) TestAutoRegisterHostURL() {
	wiCtrl := NewWorkitemController(s.svc, gormapplication.NewGormDB(s.DB), s.Configuration)
	newWI := s.getWICreatePayload()
	_, wi := test.CreateWorkitemCreated(s.T(), s.svc.Context, s.svc, wiCtrl, newWI.Data.Relationships.Space.Data.ID.String(), newWI)
	require.NotNil(s.T(), wi)
	customHost := "own.domain.one"
	queryString := fmt.Sprintf("http://%s/work-item/list/detail/%s", customHost, *wi.Data.ID)
	s.verifySearchByKnownURLs(wi, customHost, queryString)
	customHost2 := "own.domain.two"
	queryString2 := fmt.Sprintf("http://%s/work-item/board/detail/%s", customHost2, *wi.Data.ID)
	s.verifySearchByKnownURLs(wi, customHost2, queryString2)
}
func ( s * searchBlackBoxTest ) TestAutoRegisterHostURL ( ) { wiCtrl := NewWorkitemController ( s . svc , gormapplication . NewGormDB ( s . DB ) , s . Configuration ) newWI := s . getWICreatePayload ( ) _ , wi := test . CreateWorkitemCreated ( s . T ( ) , s . svc . Context , s . svc , wiCtrl , newWI . Data . Relationships . Space . Data . ID . String ( ) , newWI ) require . NotNil ( s . T ( ) , wi ) customHost := " " queryString := fmt . Sprintf ( " " , customHost , * wi . Data . ID ) s . verifySearchByKnownURLs ( wi , customHost , queryString ) customHost2 := " " queryString2 := fmt . Sprintf ( " " , customHost2 , * wi . Data . ID ) s . verifySearchByKnownURLs ( wi , customHost2 , queryString2 ) }
TestAutoRegisterHostURL checks if client's host is neatly registered as a KnwonURL or not
Uses helper functions verifySearchByKnownURLs, searchByURL, getWICreatePayload
TestAutoRegisterHostURL checks if client ' s host is neatly registered as a KnwonURL or not Uses helper functions verifySearchByKnownURLs searchByURL getWICreatePayload
// service := getServiceAsUser(s.testIdentity) // create a WI, search by `list view URL` of newly created item // Search by `board view URL` of newly created item