Skip to content

Commit

Permalink
updated api tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Sep 5, 2024
1 parent a125afa commit 18e5766
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
3 changes: 0 additions & 3 deletions test/api/migrationwave/samples.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,16 @@ var Samples = []api.MigrationWave{
EndDate: time.Date(time.Now().Year(), time.Now().Month(), time.Now().Day(), 0, 0, 0, 0, time.Local).Add(30 * time.Minute),
Applications: []api.Ref{
{
ID: 1,
Name: "Sample Application",
},
},
Stakeholders: []api.Ref{
{
ID: 1,
Name: "Sample Stakeholders",
},
},
StakeholderGroups: []api.Ref{
{
ID: 1,
Name: "Sample Stakeholders Groups",
},
},
Expand Down
2 changes: 0 additions & 2 deletions test/api/review/samples.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ var Samples = []api.Review{
WorkPriority: 1,
Comments: "nil",
Application: &api.Ref{
ID: 1,
Name: "Sample Review 1",
},
},
Expand All @@ -23,7 +22,6 @@ var Samples = []api.Review{
WorkPriority: 2,
Comments: "nil",
Application: &api.Ref{
ID: 2,
Name: "Sample Review 2",
},
},
Expand Down
5 changes: 1 addition & 4 deletions test/api/ticket/samples.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,17 @@ package ticket

import (
"github.com/konveyor/tackle2-hub/api"
TrackerSamples "github.com/konveyor/tackle2-hub/test/api/tracker"
)

var Samples = []api.Ticket{
{
Kind: "10001",
Parent: "10000",
Application: api.Ref{
ID: 1,
Name: "Sample Application1",
},
Tracker: api.Ref{
ID: 1,
Name: TrackerSamples.Samples[0].Name,
Name: "Sample Ticket-Tracker",
},
},
}
2 changes: 0 additions & 2 deletions test/api/tracker/samples.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ var Samples = []api.Tracker{
Message: "Description of tracker",
LastUpdated: time.Date(time.Now().Year(), time.Now().Month(), time.Now().Day(), 0, 0, 0, 0, time.Local),
Identity: api.Ref{
ID: 1,
Name: "Sample Tracker Identity",
},
Insecure: false,
Expand All @@ -26,7 +25,6 @@ var Samples = []api.Tracker{
Message: "Description of tracker1",
LastUpdated: time.Date(time.Now().Year(), time.Now().Month(), time.Now().Day(), 0, 0, 0, 0, time.Local),
Identity: api.Ref{
ID: 2,
Name: "Sample Tracker Identity1",
},
Insecure: false,
Expand Down

0 comments on commit 18e5766

Please sign in to comment.