func (s *searchControllerTestSuite) TestAutoRegisterHostURL() {
	fxt := tf.NewTestFixture(s.T(), s.DB, tf.CreateWorkItemEnvironment(), tf.WorkItems(1))
	customHost := "own.domain.one"
	queryString := fmt.Sprintf("http://%s/work-item/list/detail/%d", customHost, fxt.WorkItems[0].Fields[workitem.SystemNumber])
	s.verifySearchByKnownURLs(fxt.WorkItems[0], customHost, queryString)

	// Search by `board view URL` of newly created item
	customHost2 := "own.domain.two"
	queryString2 := fmt.Sprintf("http://%s/work-item/board/detail/%d", customHost2, fxt.WorkItems[0].Fields[workitem.SystemNumber])
	s.verifySearchByKnownURLs(fxt.WorkItems[0], customHost2, queryString2)
}
// TestAutoRegisterHostURL checks if client's host is neatly registered as a KnownURL or not
// Uses helper functions verifySearchByKnownURLs, searchByURL
TestAutoRegisterHostURL checks if client's host is neatly registered as a KnownURL or not
Uses helper functions verifySearchByKnownURLs, searchByURL
// TestAutoRegisterHostURL checks if client ' s host is neatly registered as a KnownURL or not // Uses helper functions verifySearchByKnownURLs searchByURL
func (s *searchControllerTestSuite) TestAutoRegisterHostURL() {
	fxt := tf.NewTestFixture(s.T(), s.DB, tf.CreateWorkItemEnvironment(), tf.WorkItems(1))
	customHost := "own.domain.one"
	queryString := fmt.Sprintf("http://%s/work-item/list/detail/%d", customHost, fxt.WorkItems[0].Fields[workitem.SystemNumber])
	s.verifySearchByKnownURLs(fxt.WorkItems[0], customHost, queryString)
	customHost2 := "own.domain.two"
	queryString2 := fmt.Sprintf("http://%s/work-item/board/detail/%d", customHost2, fxt.WorkItems[0].Fields[workitem.SystemNumber])
	s.verifySearchByKnownURLs(fxt.WorkItems[0], customHost2, queryString2)
}
func ( s * searchControllerTestSuite ) TestAutoRegisterHostURL ( ) { fxt := tf . NewTestFixture ( s . T ( ) , s . DB , tf . CreateWorkItemEnvironment ( ) , tf . WorkItems ( 1 ) ) customHost := " " queryString := fmt . Sprintf ( " " , customHost , fxt . WorkItems [ 0 ] . Fields [ workitem . SystemNumber ] ) s . verifySearchByKnownURLs ( fxt . WorkItems [ 0 ] , customHost , queryString ) customHost2 := " " queryString2 := fmt . Sprintf ( " " , customHost2 , fxt . WorkItems [ 0 ] . Fields [ workitem . SystemNumber ] ) s . verifySearchByKnownURLs ( fxt . WorkItems [ 0 ] , customHost2 , queryString2 ) }
TestAutoRegisterHostURL checks if client's host is neatly registered as a KnownURL or not
Uses helper functions verifySearchByKnownURLs, searchByURL
TestAutoRegisterHostURL checks if client ' s host is neatly registered as a KnownURL or not Uses helper functions verifySearchByKnownURLs searchByURL
// Search by `board view URL` of newly created item