Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

B 20618 testing tae #13747

Closed
wants to merge 116 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
132dec3
added cancel move endpoint
loganwc Jul 25, 2024
03bd9c9
update with main
loganwc Jul 26, 2024
17df594
cancel move also cancels shipments now too
loganwc Jul 29, 2024
6d0a781
you can now cancel a ppm shipment and canceler cancels ppm
loganwc Jul 29, 2024
f154a8f
1 L not 2
loganwc Aug 1, 2024
b814746
1 l not 2 part2
loganwc Aug 1, 2024
adcd79a
resolve handler not having same name as service object
loganwc Aug 1, 2024
82debbd
ok sometimes two L's...
loganwc Aug 5, 2024
97050af
canceler instead of cancellation
loganwc Aug 9, 2024
f679735
Merge branch 'main' into B-20477
loganwc Aug 9, 2024
74b5d32
adding status check before cancellation and additional test
loganwc Aug 9, 2024
8e98621
added if not exists to query
loganwc Aug 9, 2024
5623acf
added 409 return for conflicting move status
loganwc Aug 15, 2024
bed0406
Merge branch 'main' into B-20477
pambecker Aug 16, 2024
21cacae
Merge branch 'main' into B-20477
pambecker Aug 19, 2024
52409ae
Merge branch 'main' into B-20477
loganwc Aug 21, 2024
5d9dcf0
fixed spelling
loganwc Aug 23, 2024
75eed29
updated comment
loganwc Aug 26, 2024
018cc02
renamed symbol
loganwc Aug 26, 2024
5677e0e
CANCELED
loganwc Aug 26, 2024
27eb069
added return for error
JonSpight Sep 5, 2024
1a80523
Merge in INT-B20617-SC-TOO-Creating-Mobile-Home-Shipment-and-Shipment…
Sep 6, 2024
ad8f936
Added feature flags for Boat and Mobile Home in SC/TIO/TOO views, was…
Sep 6, 2024
076f0ac
Add feature flag for mobile home shipments to Prime UI. Also includes…
Sep 6, 2024
d6523e2
Merge branch 'MAIN-B-20618-Office-Edit-Mobile-Home' into INT-B-20618-…
Sep 6, 2024
b31678f
Merge branch 'INT-B20617-SC-TOO-Creating-Mobile-Home-Shipment-and-Shi…
Sep 6, 2024
c6b9130
Bump alpine from 3.20.2 to 3.20.3
dependabot[bot] Sep 9, 2024
3202526
Merge branch 'main' into B-20477
loganwc Sep 9, 2024
210b8c0
Update api.go
loganwc Sep 9, 2024
86b69a8
Merge branch 'integrationTesting' into INT-B-20618-Office-Edit-Mobile…
brooklyn-welsh Sep 9, 2024
9b4f31b
Merge branch 'main' into B-20477
pambecker Sep 10, 2024
f73bbe7
Merge branch 'main' into B-20477
pambecker Sep 10, 2024
e43a5c3
initial commit, should all be good, tests added
danieljordan-caci Sep 10, 2024
46005db
Merge branch 'main' into B-20477
loganwc Sep 11, 2024
1d9d1de
initial changes
danieljordan-caci Sep 4, 2024
df6d5e4
initial commit, tests added, working as intended
danieljordan-caci Sep 5, 2024
6fc8094
Update api.go
loganwc Sep 11, 2024
563623d
Merge branch 'main' into B-20477
loganwc Sep 11, 2024
6228197
Initial additions to Playwright tests for Mobile Home shipments.
Sep 12, 2024
0a9471a
Merge branch 'main' into MAIN-B-20618-Office-Edit-Mobile-Home
Sep 12, 2024
3f9999b
Merge branch 'main' into MAIN-B-21038
cameroncaci Sep 13, 2024
ecd1b33
update red color to meet 508 compliance
traskowskycaci Sep 13, 2024
2d7e6b8
Merge branch 'main' into MAIN-B-19809
traskowskycaci Sep 13, 2024
882601a
Fixed typo in factory and added unit tests for boat/mobile home shipm…
Sep 13, 2024
8477cff
Merge in Main
Sep 13, 2024
f23f0d9
Merge branch 'integrationTesting' into INT-B-20618-Office-Edit-Mobile…
Sep 13, 2024
61232cf
Merge branch 'MAIN-B-20618-Office-Edit-Mobile-Home' into INT-B-20618-…
Sep 13, 2024
9ae7a34
Merge MAIN-B-20618-OFfice-Edit-Mobile-Home
Sep 13, 2024
5bb7d4f
Fixed typo again to have correct camelCase naming
Sep 13, 2024
1fc8f47
Merge branch 'MAIN-B-20618-Office-Edit-Mobile-Home' into INT-B-20618-…
Sep 13, 2024
710e5a2
Commits from PR 13578
WeatherfordAaron Sep 13, 2024
0ceb94d
Commits from PR 13616
WeatherfordAaron Sep 13, 2024
78eb5df
Fixed duplicate instance of "Requested delivery" field that was prese…
Sep 16, 2024
2eab4ca
Merge branch 'main' into B-21016-tpps-received-totals-MAIN
traskowskycaci Sep 16, 2024
b361e04
Merge branch 'integrationTesting' into INT-B-20618-Office-Edit-Mobile…
brooklyn-welsh Sep 17, 2024
bce570c
Merge branch 'main' of https://github.com/transcom/mymove into B-20785
JonSpight Sep 17, 2024
474950f
Fix for mobile home creation playwright test.
Sep 17, 2024
9d39270
Merge branch 'MAIN-B-20618-Office-Edit-Mobile-Home' into INT-B-20618-…
Sep 17, 2024
b85125c
Merge branch 'main' into B-20893
ajlusk Sep 17, 2024
313003c
Merge branch 'main' into B-20787
ajlusk Sep 17, 2024
1f96840
missing file
JonSpight Sep 17, 2024
e47b241
Changed unneeded selector in playwright test
Sep 17, 2024
469ce49
Removed outdated comment.
Sep 17, 2024
4667a8c
Merge branch 'MAIN-B-20618-Office-Edit-Mobile-Home' into INT-B-20618-…
Sep 17, 2024
8eee2cb
merge B-20785
JonSpight Sep 17, 2024
40eca46
Merge branch 'main' into B-20477
pambecker Sep 18, 2024
d870815
Merge branch 'main' into B-21040-MAIN
paulstonebraker Sep 19, 2024
a54f1e9
Merge pull request #13731 from transcom/B-20785
pambecker Sep 19, 2024
7e4e769
Merge branch 'main' into B-20466
pambecker Sep 19, 2024
8bb6764
Merge branch 'main' into B-21040-MAIN
paulstonebraker Sep 19, 2024
d5175e2
Merge branch 'main' into B-20477
pambecker Sep 19, 2024
289eb14
Merge pull request #13341 from transcom/B-20477
pambecker Sep 19, 2024
5b71c51
Merge branch 'main' into B-20787
r-mettler Sep 19, 2024
433d7aa
Merge branch 'main' into B-20893
r-mettler Sep 19, 2024
650f4ee
Merge branch 'main' into B-20441
r-mettler Sep 19, 2024
8e729bf
Merge branch 'main' into B-21040-MAIN
pambecker Sep 19, 2024
7aae523
Merge branch 'main' into MAIN-B-21038
cameroncaci Sep 19, 2024
c0513f3
Merge branch 'main' into MAIN-B-19809
traskowskycaci Sep 19, 2024
30d3079
Merge pull request #13733 from transcom/B-20787
r-mettler Sep 19, 2024
d3f1bce
Merge branch 'main' into B-20893
r-mettler Sep 19, 2024
5bb28b6
Merge branch 'main' into B-20441
r-mettler Sep 19, 2024
0082814
Merge branch 'main' into B-21040-MAIN
pambecker Sep 19, 2024
9d0a046
Merge branch 'main' into MAIN-B-21038
cameroncaci Sep 19, 2024
ab5d59e
Merge pull request #13644 from transcom/B-21040-MAIN
pambecker Sep 19, 2024
7317f1f
Merge branch 'main' into B-20466
pambecker Sep 19, 2024
b5b3530
Merge branch 'main' into MAIN-B-21038
cameroncaci Sep 19, 2024
631e688
Merge branch 'main' into B-20893
r-mettler Sep 19, 2024
7e42012
Merge branch 'main' into B-20441
r-mettler Sep 19, 2024
6158875
Merge pull request #13735 from transcom/B-20466
pambecker Sep 19, 2024
6551c6e
Merge branch 'main' into B-20441
CoryKleinjanCACI Sep 19, 2024
17b11d3
Merge branch 'main' into MAIN-B-21038
deandreJones Sep 19, 2024
6978b96
Merge branch 'main' into MAIN-B-20292-Alt-Phone-Update-Issue
taeJungCaci Sep 19, 2024
06d3396
Merge branch 'main' into B-20893
r-mettler Sep 19, 2024
c3e7485
Merge pull request #13539 from transcom/B-20441
r-mettler Sep 19, 2024
10ad92a
Merge branch 'main' into B-20893
r-mettler Sep 19, 2024
4a03f1e
Merge branch 'main' into MAIN-B-20292-Alt-Phone-Update-Issue
taeJungCaci Sep 19, 2024
b21fce3
Merge pull request #13732 from transcom/B-20893
r-mettler Sep 19, 2024
86760ad
Merge branch 'main' into MAIN-B-20292-Alt-Phone-Update-Issue
taeJungCaci Sep 19, 2024
c446c4f
Merge pull request #13714 from transcom/MAIN-B-20292-Alt-Phone-Update…
taeJungCaci Sep 19, 2024
68c0e95
Merge branch 'main' into MAIN-B-21038
cameroncaci Sep 19, 2024
4172faa
Merge pull request #13689 from transcom/MAIN-B-21038
cameroncaci Sep 19, 2024
51c8626
Merge branch 'main' into MAIN-B-19809
cameroncaci Sep 19, 2024
0544e2a
Merge pull request #13685 from transcom/MAIN-B-19809
cameroncaci Sep 19, 2024
9e94271
Merge branch 'main' into dependabot/docker/alpine-3.20.3
deandreJones Sep 19, 2024
7bd9ac6
commits from PR 13591
WeatherfordAaron Sep 20, 2024
f9343f8
Merge branch 'main' into B-21016-tpps-received-totals-MAIN
traskowskycaci Sep 20, 2024
b9a9972
Merge pull request #13655 from transcom/dependabot/docker/alpine-3.20.3
deandreJones Sep 20, 2024
6842533
Merge branch 'main' into MAIN-B-20445-Add-Marine-Corps-BOS-to-Move-Se…
WeatherfordAaron Sep 20, 2024
b64d5a6
Merge branch 'main' into B-21016-tpps-received-totals-MAIN
cameroncaci Sep 20, 2024
9899047
Merge pull request #13743 from transcom/MAIN-B-20445-Add-Marine-Corps…
taeJungCaci Sep 20, 2024
0f801a6
Merge branch 'main' into B-21016-tpps-received-totals-MAIN
traskowskycaci Sep 20, 2024
a4faf0c
Merge pull request #13726 from transcom/B-21016-tpps-received-totals-…
cameroncaci Sep 20, 2024
a72b633
Merge branch 'main' into b-20618-testing-tae
taeJungCaci Sep 20, 2024
6a36e24
Merge branch 'integrationTesting' into b-20618-testing-tae
taeJungCaci Sep 20, 2024
c19a339
gen
taeJungCaci Sep 20, 2024
48c64ce
missing conflict
taeJungCaci Sep 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile.e2e
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.20.2
FROM alpine:3.20.3

# hadolint ignore=DL3017
RUN apk upgrade --no-cache busybox
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.migrations
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.20.2
FROM alpine:3.20.3

# hadolint ignore=DL3017
RUN apk upgrade --no-cache busybox
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.migrations_local
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN rm -f bin/milmove && make bin/milmove
# FINAL #
#########

FROM alpine:3.20.2
FROM alpine:3.20.3

# hadolint ignore=DL3017
RUN apk upgrade --no-cache busybox --force-missing-repositories
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.reviewapp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ RUN set -x \
&& make bin/generate-test-data

# define migrations before client build since it doesn't need client
FROM alpine:3.20.2 as migrate
FROM alpine:3.20.3 as migrate

COPY --from=server_builder /build/bin/rds-ca-2019-root.pem /bin/rds-ca-2019-root.pem
COPY --from=server_builder /build/bin/milmove /bin/milmove
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.tools
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.20.2
FROM alpine:3.20.3

# hadolint ignore=DL3017
RUN apk upgrade --no-cache busybox
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.tools_local
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN rm -f bin/prime-api-client && make bin/prime-api-client
# FINAL #
#########

FROM alpine:3.20.2
FROM alpine:3.20.3

# hadolint ignore=DL3017
RUN apk upgrade --no-cache busybox
Expand Down
8 changes: 4 additions & 4 deletions pkg/factory/boat_shipment_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type boatBuildType byte
const (
boatBuildStandard boatBuildType = iota
boatBuildStandardTowAway
boatBuildStandardHualAway
boatBuildStandardHaulAway
)

// buildBoatShipmentWithBuildType does the actual work
Expand Down Expand Up @@ -56,7 +56,7 @@ func buildBoatShipmentWithBuildType(db *pop.Connection, customs []Customization,
shipment.ShipmentType = models.MTOShipmentTypeBoatTowAway
}

if buildType == boatBuildStandardHualAway {
if buildType == boatBuildStandardHaulAway {
shipment.ShipmentType = models.MTOShipmentTypeBoatHaulAway
}

Expand All @@ -80,7 +80,7 @@ func buildBoatShipmentWithBuildType(db *pop.Connection, customs []Customization,
boatShipment.IsRoadworthy = models.BoolPointer(true)
}

if buildType == boatBuildStandardHualAway {
if buildType == boatBuildStandardHaulAway {
boatShipment.Type = models.BoatShipmentTypeHaulAway
boatShipment.HasTrailer = models.BoolPointer(false)
boatShipment.IsRoadworthy = models.BoolPointer(false)
Expand All @@ -106,7 +106,7 @@ func BuildBoatShipmentTowAway(db *pop.Connection, customs []Customization, trait
return buildBoatShipmentWithBuildType(db, customs, traits, boatBuildStandardTowAway)
}
func BuildBoatShipmentHaulAway(db *pop.Connection, customs []Customization, traits []Trait) models.BoatShipment {
return buildBoatShipmentWithBuildType(db, customs, traits, boatBuildStandardHualAway)
return buildBoatShipmentWithBuildType(db, customs, traits, boatBuildStandardHaulAway)
}

// ------------------------
Expand Down
66 changes: 65 additions & 1 deletion pkg/services/move/move_router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,15 +296,56 @@ func (suite *MoveServiceSuite) TestMoveSubmission() {
},
}, nil)

boatMTOSHipment := factory.BuildMTOShipmentMinimal(suite.DB(), []factory.Customization{
{
Model: models.MTOShipment{
Status: models.MTOShipmentStatusDraft,
ShipmentType: models.MTOShipmentTypeBoatHaulAway,
},
},
{
Model: move,
LinkOnly: true,
},
}, nil)

mobileHomeMTOShipment := factory.BuildMTOShipmentMinimal(suite.DB(), []factory.Customization{
{
Model: models.MTOShipment{
Status: models.MTOShipmentStatusDraft,
ShipmentType: models.MTOShipmentTypeMobileHome,
},
},
{
Model: move,
LinkOnly: true,
},
}, nil)

ppmShipment := factory.BuildPPMShipment(suite.DB(), []factory.Customization{
{
Model: models.PPMShipment{
Status: models.PPMShipmentStatusDraft,
},
},
}, nil)
move.MTOShipments = models.MTOShipments{shipment}

boatShipment := factory.BuildBoatShipmentHaulAway(suite.DB(), []factory.Customization{
{
Model: models.BoatShipment{},
},
}, nil)

mobileHomeShipment := factory.BuildMobileHomeShipment(suite.DB(), []factory.Customization{
{
Model: models.MobileHome{},
},
}, nil)

move.MTOShipments = models.MTOShipments{shipment, boatMTOSHipment, mobileHomeMTOShipment}
move.MTOShipments[0].PPMShipment = &ppmShipment
move.MTOShipments[0].BoatShipment = &boatShipment
move.MTOShipments[0].MobileHome = &mobileHomeShipment

newSignedCertification := factory.BuildSignedCertification(nil, []factory.Customization{
{
Expand Down Expand Up @@ -397,6 +438,7 @@ func (suite *MoveServiceSuite) TestMoveSubmission() {
suite.Equal(models.MTOShipmentStatusSubmitted, move.MTOShipments[0].Status, "expected Submitted")
suite.Equal(models.PPMShipmentStatusSubmitted, move.MTOShipments[0].PPMShipment.Status, "expected Submitted")
})

}

func (suite *MoveServiceSuite) TestMoveCancellation() {
Expand Down Expand Up @@ -745,6 +787,28 @@ func (suite *MoveServiceSuite) TestCompleteServiceCounseling() {
suite.IsType(apperror.ConflictError{}, err)
suite.Contains(err.Error(), "NTS-release shipment must include facility info")
})

suite.Run("Boat Shipment - status changed to 'SERVICE_COUNSELING_COMPLETED'", func() {
move := factory.BuildStubbedMoveWithStatus(models.MoveStatusNeedsServiceCounseling)
boatShipment := factory.BuildBoatShipment(nil, nil, nil)
move.MTOShipments = models.MTOShipments{boatShipment.Shipment}

err := moveRouter.CompleteServiceCounseling(suite.AppContextForTest(), &move)

suite.NoError(err)
suite.Equal(models.MoveStatusServiceCounselingCompleted, move.Status)
})

suite.Run("Mobile Home Shipment - status changed to 'SERVICE_COUNSELING_COMPLETED'", func() {
move := factory.BuildStubbedMoveWithStatus(models.MoveStatusNeedsServiceCounseling)
mobileHomeShipment := factory.BuildMobileHomeShipment(nil, nil, nil)
move.MTOShipments = models.MTOShipments{mobileHomeShipment.Shipment}

err := moveRouter.CompleteServiceCounseling(suite.AppContextForTest(), &move)

suite.NoError(err)
suite.Equal(models.MoveStatusServiceCounselingCompleted, move.Status)
})
}

func (suite *MoveServiceSuite) createServiceItem() (models.MTOServiceItem, models.Move) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,13 @@ func (s SSWPPMComputer) FormatValuesShipmentSummaryWorksheetFormPage1(data model
page1.WeightAllotmentProgearSpouse = FormatWeights(data.WeightAllotment.SpouseProGear)
page1.TotalWeightAllotment = FormatWeights(data.WeightAllotment.TotalWeight)

formattedSIT := WorkSheetSIT{}

formattedShipment := s.FormatShipment(data.PPMShipment, data.WeightAllotment, isPaymentPacket)
page1.ShipmentNumberAndTypes = formattedShipment.ShipmentNumberAndTypes
page1.ShipmentPickUpDates = formattedShipment.PickUpDates
page1.ShipmentCurrentShipmentStatuses = formattedShipment.CurrentShipmentStatuses

formattedSIT := WorkSheetSIT{}
// Shipment weights for Payment Packet are actual, for AOA Packet are estimated.
if isPaymentPacket {
formattedSIT = FormatAllSITSForPaymentPacket(data.MovingExpenses)
Expand Down Expand Up @@ -1008,12 +1009,13 @@ func (SSWPPMComputer *SSWPPMComputer) FetchDataShipmentSummaryWorksheetFormData(
return nil, err
}

// Fetches all signed certifications for a move to be filtered in this file by ppmid and type
signedCertifications, err := models.FetchSignedCertifications(appCtx.DB(), session, ppmShipment.Shipment.MoveTaskOrderID)
serviceMember.Edipi, err = formatEmplid(serviceMember)
if err != nil {
return nil, err
}
serviceMember.Edipi, err = formatEmplid(serviceMember)

// Fetches all signed certifications for a move to be filtered in this file by ppmid and type
signedCertifications, err := models.FetchSignedCertifications(appCtx.DB(), session, ppmShipment.Shipment.MoveTaskOrderID)
if err != nil {
return nil, err
}
Expand Down
Loading