func (s *workItemTypeSuite) TestListWorkItemLinkTypeSources200OK() {
	// given
	sourceLinkType, _ := s.createWorkitemtypeLinks()
	// when fetch source link types
	res, wiltCollection := test.ListSourceLinkTypesWorkitemtypeOK(s.T(), nil, nil, s.typeCtrl, space.SystemSpace.String(), animalID, nil, nil)
	require.NotNil(s.T(), wiltCollection)
	assert.Nil(s.T(), wiltCollection.Validate())
	// then check the number of found work item link types
	require.Len(s.T(), wiltCollection.Data, 1)
	assert.Equal(s.T(), animalLinksToBugStr, *wiltCollection.Data[0].Attributes.Name)
	require.NotNil(s.T(), res.Header()[app.LastModified])
	assert.Equal(s.T(), app.ToHTTPTime(getWorkItemLinkTypeUpdatedAt(sourceLinkType)), res.Header()[app.LastModified][0])
	require.NotNil(s.T(), res.Header()[app.CacheControl])
	assert.Equal(s.T(), app.MaxAge+"=86400", res.Header()[app.CacheControl][0])
	require.NotNil(s.T(), res.Header()[app.ETag])
	assert.Equal(s.T(), generateWorkItemLinkTypeTag(sourceLinkType), res.Header()[app.ETag][0])
}
// TestListWorkItemLinkTypeSources200OK tests if we can find the work item link
// types for a given WIT.
TestListWorkItemLinkTypeSources200OK tests if we can find the work item link
types for a given WIT.
// TestListWorkItemLinkTypeSources200OK tests if we can find the work item link // types for a given WIT .
func (s *workItemTypeSuite) TestListWorkItemLinkTypeSources200OK() {
	sourceLinkType, _ := s.createWorkitemtypeLinks()
	res, wiltCollection := test.ListSourceLinkTypesWorkitemtypeOK(s.T(), nil, nil, s.typeCtrl, space.SystemSpace.String(), animalID, nil, nil)
	require.NotNil(s.T(), wiltCollection)
	assert.Nil(s.T(), wiltCollection.Validate())
	require.Len(s.T(), wiltCollection.Data, 1)
	assert.Equal(s.T(), animalLinksToBugStr, *wiltCollection.Data[0].Attributes.Name)
	require.NotNil(s.T(), res.Header()[app.LastModified])
	assert.Equal(s.T(), app.ToHTTPTime(getWorkItemLinkTypeUpdatedAt(sourceLinkType)), res.Header()[app.LastModified][0])
	require.NotNil(s.T(), res.Header()[app.CacheControl])
	assert.Equal(s.T(), app.MaxAge+"=86400", res.Header()[app.CacheControl][0])
	require.NotNil(s.T(), res.Header()[app.ETag])
	assert.Equal(s.T(), generateWorkItemLinkTypeTag(sourceLinkType), res.Header()[app.ETag][0])
}
func ( s * workItemTypeSuite ) TestListWorkItemLinkTypeSources200OK ( ) { sourceLinkType , _ := s . createWorkitemtypeLinks ( ) res , wiltCollection := test . ListSourceLinkTypesWorkitemtypeOK ( s . T ( ) , nil , nil , s . typeCtrl , space . SystemSpace . String ( ) , animalID , nil , nil ) require . NotNil ( s . T ( ) , wiltCollection ) assert . Nil ( s . T ( ) , wiltCollection . Validate ( ) ) require . Len ( s . T ( ) , wiltCollection . Data , 1 ) assert . Equal ( s . T ( ) , animalLinksToBugStr , * wiltCollection . Data [ 0 ] . Attributes . Name ) require . NotNil ( s . T ( ) , res . Header ( ) [ app . LastModified ] ) assert . Equal ( s . T ( ) , app . ToHTTPTime ( getWorkItemLinkTypeUpdatedAt ( sourceLinkType ) ) , res . Header ( ) [ app . LastModified ] [ 0 ] ) require . NotNil ( s . T ( ) , res . Header ( ) [ app . CacheControl ] ) assert . Equal ( s . T ( ) , app . MaxAge + " " , res . Header ( ) [ app . CacheControl ] [ 0 ] ) require . NotNil ( s . T ( ) , res . Header ( ) [ app . ETag ] ) assert . Equal ( s . T ( ) , generateWorkItemLinkTypeTag ( sourceLinkType ) , res . Header ( ) [ app . ETag ] [ 0 ] ) }
TestListWorkItemLinkTypeSources200OK tests if we can find the work item link
types for a given WIT.
TestListWorkItemLinkTypeSources200OK tests if we can find the work item link types for a given WIT .
// given // when fetch source link types // then check the number of found work item link types