func (s *workItemTypeSuite) TestShowWorkItemType200UsingExpiredLastModifiedHeader() {
	// given
	// Create the work item type first and try to read it back in
	_, wit := s.createWorkItemTypeAnimal()
	require.NotNil(s.T(), wit)
	require.NotNil(s.T(), wit.Data)
	require.NotNil(s.T(), wit.Data.ID)
	// when
	lastModified := app.ToHTTPTime(time.Now().Add(-1 * time.Hour))
	res, wit2 := test.ShowWorkitemtypeOK(s.T(), nil, nil, s.typeCtrl, space.SystemSpace.String(), *wit.Data.ID, &lastModified, nil)
	// then
	require.NotNil(s.T(), wit2)
	assert.EqualValues(s.T(), wit, wit2)
	require.NotNil(s.T(), res.Header()[app.LastModified])
	assert.Equal(s.T(), app.ToHTTPTime(getWorkItemTypeUpdatedAt(*wit)), 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(), generateWorkItemTypeTag(*wit), res.Header()[app.ETag][0])
}
// TestShowWorkItemType200UsingExpiredLastModifiedHeader tests if we can fetch the work item type "animal"
// with an expired "If-None-Match" HTTP request header
TestShowWorkItemType200UsingExpiredLastModifiedHeader tests if we can fetch the work item type "animal"
with an expired "If-None-Match" HTTP request header
// TestShowWorkItemType200UsingExpiredLastModifiedHeader tests if we can fetch the work item type " animal " // with an expired " If - None - Match " HTTP request header
func (s *workItemTypeSuite) TestShowWorkItemType200UsingExpiredLastModifiedHeader() {
	_, wit := s.createWorkItemTypeAnimal()
	require.NotNil(s.T(), wit)
	require.NotNil(s.T(), wit.Data)
	require.NotNil(s.T(), wit.Data.ID)
	lastModified := app.ToHTTPTime(time.Now().Add(-1 * time.Hour))
	res, wit2 := test.ShowWorkitemtypeOK(s.T(), nil, nil, s.typeCtrl, space.SystemSpace.String(), *wit.Data.ID, &lastModified, nil)
	require.NotNil(s.T(), wit2)
	assert.EqualValues(s.T(), wit, wit2)
	require.NotNil(s.T(), res.Header()[app.LastModified])
	assert.Equal(s.T(), app.ToHTTPTime(getWorkItemTypeUpdatedAt(*wit)), 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(), generateWorkItemTypeTag(*wit), res.Header()[app.ETag][0])
}
func ( s * workItemTypeSuite ) TestShowWorkItemType200UsingExpiredLastModifiedHeader ( ) { _ , wit := s . createWorkItemTypeAnimal ( ) require . NotNil ( s . T ( ) , wit ) require . NotNil ( s . T ( ) , wit . Data ) require . NotNil ( s . T ( ) , wit . Data . ID ) lastModified := app . ToHTTPTime ( time . Now ( ) . Add ( - 1 * time . Hour ) ) res , wit2 := test . ShowWorkitemtypeOK ( s . T ( ) , nil , nil , s . typeCtrl , space . SystemSpace . String ( ) , * wit . Data . ID , & lastModified , nil ) require . NotNil ( s . T ( ) , wit2 ) assert . EqualValues ( s . T ( ) , wit , wit2 ) require . NotNil ( s . T ( ) , res . Header ( ) [ app . LastModified ] ) assert . Equal ( s . T ( ) , app . ToHTTPTime ( getWorkItemTypeUpdatedAt ( * wit ) ) , 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 ( ) , generateWorkItemTypeTag ( * wit ) , res . Header ( ) [ app . ETag ] [ 0 ] ) }
TestShowWorkItemType200UsingExpiredLastModifiedHeader tests if we can fetch the work item type "animal"
with an expired "If-None-Match" HTTP request header
TestShowWorkItemType200UsingExpiredLastModifiedHeader tests if we can fetch the work item type " animal " with an expired " If - None - Match " HTTP request header
// given // Create the work item type first and try to read it back in // when // then