func (s *workItemTypeSuite) TestListTargetLinkTypes200UsingExpiredIfNoneMatchHeader() {
	// given
	_, targetLinkType := s.createWorkitemtypeLinks()
	// When fetch target link types
	ifNoneMatch := "foo"
	res, wiltCollection := test.ListTargetLinkTypesWorkitemtypeOK(s.T(), nil, nil, s.typeCtrl, space.SystemSpace.String(), animalID, nil, &ifNoneMatch)
	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(), bugLinksToAnimalStr, *wiltCollection.Data[0].Attributes.Name)
	require.NotNil(s.T(), res.Header()[app.LastModified])
	assert.Equal(s.T(), app.ToHTTPTime(getWorkItemLinkTypeUpdatedAt(targetLinkType)), 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(targetLinkType), res.Header()[app.ETag][0])
}
// TestListTargetLinkTypes200UsingExpiredIfNoneMatchHeader tests if we can find the work item link
// types for a given WIT.
TestListTargetLinkTypes200UsingExpiredIfNoneMatchHeader tests if we can find the work item link
types for a given WIT.
// TestListTargetLinkTypes200UsingExpiredIfNoneMatchHeader tests if we can find the work item link // types for a given WIT .
func (s *workItemTypeSuite) TestListTargetLinkTypes200UsingExpiredIfNoneMatchHeader() {
	_, targetLinkType := s.createWorkitemtypeLinks()
	ifNoneMatch := "foo"
	res, wiltCollection := test.ListTargetLinkTypesWorkitemtypeOK(s.T(), nil, nil, s.typeCtrl, space.SystemSpace.String(), animalID, nil, &ifNoneMatch)
	require.NotNil(s.T(), wiltCollection)
	assert.Nil(s.T(), wiltCollection.Validate())
	require.Len(s.T(), wiltCollection.Data, 1)
	assert.Equal(s.T(), bugLinksToAnimalStr, *wiltCollection.Data[0].Attributes.Name)
	require.NotNil(s.T(), res.Header()[app.LastModified])
	assert.Equal(s.T(), app.ToHTTPTime(getWorkItemLinkTypeUpdatedAt(targetLinkType)), 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(targetLinkType), res.Header()[app.ETag][0])
}
func ( s * workItemTypeSuite ) TestListTargetLinkTypes200UsingExpiredIfNoneMatchHeader ( ) { _ , targetLinkType := s . createWorkitemtypeLinks ( ) ifNoneMatch := " " res , wiltCollection := test . ListTargetLinkTypesWorkitemtypeOK ( s . T ( ) , nil , nil , s . typeCtrl , space . SystemSpace . String ( ) , animalID , nil , & ifNoneMatch ) require . NotNil ( s . T ( ) , wiltCollection ) assert . Nil ( s . T ( ) , wiltCollection . Validate ( ) ) require . Len ( s . T ( ) , wiltCollection . Data , 1 ) assert . Equal ( s . T ( ) , bugLinksToAnimalStr , * wiltCollection . Data [ 0 ] . Attributes . Name ) require . NotNil ( s . T ( ) , res . Header ( ) [ app . LastModified ] ) assert . Equal ( s . T ( ) , app . ToHTTPTime ( getWorkItemLinkTypeUpdatedAt ( targetLinkType ) ) , 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 ( targetLinkType ) , res . Header ( ) [ app . ETag ] [ 0 ] ) }
TestListTargetLinkTypes200UsingExpiredIfNoneMatchHeader tests if we can find the work item link
types for a given WIT.
TestListTargetLinkTypes200UsingExpiredIfNoneMatchHeader tests if we can find the work item link types for a given WIT .
// given // When fetch target link types // Then check the number of found work item link types