func (rest *TestTrackerREST) TestCreateTrackerValidId() {
	t := rest.T()
	resource.Require(t, resource.Database)

	svc, ctrl := rest.SecuredController()
	payload := app.CreateTrackerAlternatePayload{
		URL:  "http://issues.jboss.com",
		Type: "jira",
	}
	_, tracker := test.CreateTrackerCreated(t, svc.Context, svc, ctrl, &payload)

	_, created := test.ShowTrackerOK(t, svc.Context, svc, ctrl, tracker.ID)
	if created != nil && created.ID != tracker.ID {
		t.Error("Failed because fetched Tracker not same as requested. Found: ", tracker.ID, " Expected, ", created.ID)
	}
}
// This test ensures that ID returned by Show is valid.
// refer : https://github.com/almighty/almighty-core/issues/189
This test ensures that ID returned by Show is valid.
// This test ensures that ID returned by Show is valid . // refer : https : // github . com / almighty / almighty - core / issues / 189
func (rest *TestTrackerREST) TestCreateTrackerValidId() {
	t := rest.T()
	resource.Require(t, resource.Database)
	svc, ctrl := rest.SecuredController()
	payload := app.CreateTrackerAlternatePayload{
		URL:  "http://issues.jboss.com",
		Type: "jira",
	}
	_, tracker := test.CreateTrackerCreated(t, svc.Context, svc, ctrl, &payload)
	_, created := test.ShowTrackerOK(t, svc.Context, svc, ctrl, tracker.ID)
	if created != nil && created.ID != tracker.ID {
		t.Error("Failed because fetched Tracker not same as requested. Found: ", tracker.ID, " Expected, ", created.ID)
	}
}
func ( rest * TestTrackerREST ) TestCreateTrackerValidId ( ) { t := rest . T ( ) resource . Require ( t , resource . Database ) svc , ctrl := rest . SecuredController ( ) payload := app . CreateTrackerAlternatePayload { URL : " " , Type : " " , } _ , tracker := test . CreateTrackerCreated ( t , svc . Context , svc , ctrl , & payload ) _ , created := test . ShowTrackerOK ( t , svc . Context , svc , ctrl , tracker . ID ) if created != nil && created . ID != tracker . ID { t . Error ( " " , tracker . ID , " " , created . ID ) } }
This test ensures that ID returned by Show is valid.
This test ensures that ID returned by Show is valid .