func (s *WorkItem2Suite) xTestWI2IfModifiedSince() {
	t := s.T()

	c := minimumRequiredCreatePayload()
	c.Data.Attributes[workitem.SystemTitle] = "Title"
	c.Data.Attributes[workitem.SystemState] = workitem.SystemStateNew
	c.Data.Relationships = &app.WorkItemRelationships{
		BaseType: newRelationBaseType(space.SystemSpace, workitem.SystemBug),
	}

	resp, wi := test.CreateWorkitemCreated(t, s.svc.Context, s.svc, s.wi2Ctrl, c.Data.Relationships.Space.Data.ID.String(), &c)

	lastMod := resp.Header().Get("Last-Modified")
	s.svc.Use(func(handler goa.Handler) goa.Handler {
		return func(ctx context.Context, rw http.ResponseWriter, req *http.Request) (err error) {
			req.Header.Set("If-Modified-Since", lastMod)
			return nil
		}
	})
	test.ShowWorkitemNotModified(t, s.svc.Context, s.svc, s.wi2Ctrl, wi.Data.Relationships.Space.Data.ID.String(), *wi.Data.ID, nil, nil)
}
//Ignore, middlewares not respected by the generated test framework. No way to modify Request?
// Require full HTTP request access.
Ignore, middlewares not respected by the generated test framework. No way to modify Request.
Require full HTTP request access.
// Ignore middlewares not respected by the generated test framework . No way to modify Request? // Require full HTTP request access .
func (s *WorkItem2Suite) xTestWI2IfModifiedSince() {
	t := s.T()
	c := minimumRequiredCreatePayload()
	c.Data.Attributes[workitem.SystemTitle] = "Title"
	c.Data.Attributes[workitem.SystemState] = workitem.SystemStateNew
	c.Data.Relationships = &app.WorkItemRelationships{
		BaseType: newRelationBaseType(space.SystemSpace, workitem.SystemBug),
	}
	resp, wi := test.CreateWorkitemCreated(t, s.svc.Context, s.svc, s.wi2Ctrl, c.Data.Relationships.Space.Data.ID.String(), &c)
	lastMod := resp.Header().Get("Last-Modified")
	s.svc.Use(func(handler goa.Handler) goa.Handler {
		return func(ctx context.Context, rw http.ResponseWriter, req *http.Request) (err error) {
			req.Header.Set("If-Modified-Since", lastMod)
			return nil
		}
	})
	test.ShowWorkitemNotModified(t, s.svc.Context, s.svc, s.wi2Ctrl, wi.Data.Relationships.Space.Data.ID.String(), *wi.Data.ID, nil, nil)
}
func ( s * WorkItem2Suite ) xTestWI2IfModifiedSince ( ) { t := s . T ( ) c := minimumRequiredCreatePayload ( ) c . Data . Attributes [ workitem . SystemTitle ] = " " c . Data . Attributes [ workitem . SystemState ] = workitem . SystemStateNew c . Data . Relationships = & app . WorkItemRelationships { BaseType : newRelationBaseType ( space . SystemSpace , workitem . SystemBug ) , } resp , wi := test . CreateWorkitemCreated ( t , s . svc . Context , s . svc , s . wi2Ctrl , c . Data . Relationships . Space . Data . ID . String ( ) , & c ) lastMod := resp . Header ( ) . Get ( " " ) s . svc . Use ( func ( handler goa . Handler ) goa . Handler { return func ( ctx context . Context , rw http . ResponseWriter , req * http . Request ) ( err error ) { req . Header . Set ( " " , lastMod ) return nil } } ) test . ShowWorkitemNotModified ( t , s . svc . Context , s . svc , s . wi2Ctrl , wi . Data . Relationships . Space . Data . ID . String ( ) , * wi . Data . ID , nil , nil ) }
Ignore, middlewares not respected by the generated test framework.
Ignore middlewares not respected by the generated test framework .