Skip to content

Commit

Permalink
workflow: update avlxml lookup path
Browse files Browse the repository at this point in the history
  • Loading branch information
sevein committed Dec 2, 2019
1 parent 3e93d04 commit ce6408f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions hack/test-dpj/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ content-creation:
@echo "--> Creating package: $(TMPDIR)/$(UUID)"
@mkdir -p $(TMPDIR)/$(UUID)
@rsync --exclude=".gitkeep" -aq $(CURDIR)/contents/ $(TMPDIR)/$(UUID)/
@echo "<xml/>" > $(TMPDIR)/$(UUID)/DPJ/journal/$(UUID).xml
@if [ "$(FIXITY_ERR)" = "yes" ]; then \
mkdir -p $(TMPDIR)/metadata; \
echo "2eb15cb1834214b05d0083c691f9545f $(UUID)/DPJ/journal/$(UUID).xml" > $(TMPDIR)/metadata/checksum.md5; \
echo "2eb15cb1834214b05d0083c691f9545f $(UUID)/DPJ-SIP/journal/avlxml.xml" > $(TMPDIR)/metadata/checksum.md5; \
fi

err: FIXITY_ERR = yes
Expand Down
1 change: 1 addition & 0 deletions hack/test-dpj/contents/DPJ-SIP/journal/avlxml.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<xml>...</xml>
4 changes: 2 additions & 2 deletions internal/workflow/hari_activity.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ func (a UpdateHARIActivity) url() (string, error) {
}

func (a UpdateHARIActivity) sendRequest(ctx context.Context, apiURL string, tinfo *TransferInfo) error {
// Location of AVLXML, e.g.: // e.g. `/transfer-path/<uuid>/<kind>/journal/<uuid>.xml`.
var path = filepath.Join(tinfo.Bundle.FullPath, tinfo.OriginalID, tinfo.Bundle.Kind, "journal", tinfo.OriginalID+".xml")
// Location of AVLXML, e.g.: // e.g. `/transfer-path/<uuid>/<kind>/journal/avlxml.xml`.
var path = filepath.Join(tinfo.Bundle.FullPath, tinfo.OriginalID, tinfo.Bundle.Kind, "journal/avlxml.xml")

// Is there a better way to do this? We need to build the JSON document but
// maybe this can be done with a buffer?
Expand Down

0 comments on commit ce6408f

Please sign in to comment.