Page MenuHomeSoftware Heritage

conf/deposit: Explicit deposit api configuration
ClosedPublic

Authored by ardumont on Sep 16 2020, 6:40 PM.

Details

Summary

With D3953 and D3957 mounted.
(Without do not pose any problems either)

Test Plan

docker run with docker-compose.override.yml:

  • run a deposit upload
  • ensure in logs that loading is ok
  • check through swh deposit status the said deposit is ok (ingested with swhid)

docker-compose.override.yml:

...
  swh-deposit:
    volumes:
      - "$SWH_ENVIRONMENT_HOME/swh-deposit:/src/swh-deposit"
$ swh deposit upload --username test --password test --author ardumont --name swh-docker-dev --url http://localhost:5006 --archive swh-docker-dev.tgz
INFO:swh.deposit.cli.client:{'deposit_id': '1', 'deposit_status': 'deposited', 'deposit_status_detail': None, 'deposit_date': 'Sept. 16, 2020, 4:35 p.m.'}
$ swh deposit status --username test --password test --url http://localhost:5006 --deposit-id 1 --format json
{"deposit_id": "1", "deposit_status": "done", "deposit_status_detail": "The deposit has been successfully loaded into the Software Heritage archive", "deposit_swh_id": "swh:1:dir:3c14b1dc5e8b1a9e887739bfc91d93c378d58143", "deposit_swh_id_context": "swh:1:dir:3c14b1dc5e8b1a9e887739bfc91d93c378d58143;origin=https://softwareheritage.org/164ea5d1-e265-4369-81e5-640eb7a01300;visit=swh:1:snp:6344e4f31d9d9337fd0a8901fd967caf43e998e1;anchor=swh:1:rev:d5a087a1819984632a9e98b4337869f594ae219b;path=/", "deposit_external_id": "164ea5d1-e265-4369-81e5-640eb7a01300"}

Diff Detail

Repository
rDENV Development environment
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.