Skip to content

Commit

Permalink
Re-implement fake test
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanratcliffe committed Jul 11, 2024
1 parent 8fc8bfd commit 5981308
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions cmd/tea_submitplan.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,9 @@ func (m submitPlanModel) submitPlanCmd() tea.Msg {
close(m.processing)
return nil
}
// high := uuid.New()
// medium := uuid.New()
// low := uuid.New()
high := uuid.New()
medium := uuid.New()
low := uuid.New()
m.processing <- submitPlanUpdateMsg{changeUpdatedMsg{
url: "https://example.com/changes/abc",
riskMilestones: []*sdp.RiskCalculationStatus_ProgressMilestone{
Expand All @@ -472,27 +472,27 @@ func (m submitPlanModel) submitPlanCmd() tea.Msg {
},
},
risks: []*sdp.Risk{
// {
// UUID: high[:],
// Title: "fake high risk titled risk",
// Severity: sdp.Risk_SEVERITY_HIGH,
// Description: TEST_RISK,
// RelatedItems: []*sdp.Reference{},
// },
// {
// UUID: medium[:],
// Title: "fake medium risk titled risk",
// Severity: sdp.Risk_SEVERITY_MEDIUM,
// Description: TEST_RISK,
// RelatedItems: []*sdp.Reference{},
// },
// {
// UUID: low[:],
// Title: "fake low risk titled risk",
// Severity: sdp.Risk_SEVERITY_LOW,
// Description: TEST_RISK,
// RelatedItems: []*sdp.Reference{},
// },
{
UUID: high[:],
Title: "fake high risk titled risk",
Severity: sdp.Risk_SEVERITY_HIGH,
Description: TEST_RISK,
RelatedItems: []*sdp.Reference{},
},
{
UUID: medium[:],
Title: "fake medium risk titled risk",
Severity: sdp.Risk_SEVERITY_MEDIUM,
Description: TEST_RISK,
RelatedItems: []*sdp.Reference{},
},
{
UUID: low[:],
Title: "fake low risk titled risk",
Severity: sdp.Risk_SEVERITY_LOW,
Description: TEST_RISK,
RelatedItems: []*sdp.Reference{},
},
},
}}
time.Sleep(time.Second)
Expand Down

0 comments on commit 5981308

Please sign in to comment.