Staging instance, all changes can be removed at any time

Skip to content

conf/deposit: Explicit deposit api configuration

With swh-deposit!90 (closed) and swh-deposit!91 (closed) 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"}

Migrated from D3968 (view on Phabricator)

Merge request reports

Loading