#667 pagure-events on copr-fe-dev should run against stg.pagure.io
Closed: Fixed 3 years ago by praiskup. Opened 5 years ago by praiskup.

There's PAGURE_EVENTS_TESTONLY env variable in copr-frontend code to trigger this; we just need to set this variable somehow.


Probably by systemd drop-in *.conf file setting ENVIRONMENT=PAGURE...

We now read all of those:

PAGURE_EVENTS = {
  'io.pagure.prod.pagure.git.receive' : 'https://pagure.io/',
  'io.pagure.prod.pagure.pull-request.new' : 'https://pagure.io/',
  'io.pagure.prod.pagure.pull-request.rebased' : 'https://pagure.io/',
  'io.pagure.prod.pagure.pull-request.updated' : 'https://pagure.io/',
  'io.pagure.prod.pagure.pull-request.comment.added' : 'https://pagure.io/',
  'org.fedoraproject.prod.pagure.git.receive' : 'https://src.fedoraproject.org/',
  'org.fedoraproject.prod.pagure.pull-request.new' : 'https://src.fedoraproject.org/',
  'org.fedoraproject.prod.pagure.pull-request.rebased' : 'https://src.fedoraproject.org/',
  'org.fedoraproject.prod.pagure.pull-request.updated' : 'https://src.fedoraproject.org/',
  'org.fedoraproject.prod.pagure.pull-request.comment.added' : 'https://src.fedoraproject.org/',
  'io.pagure.stg.pagure.git.receive' : 'https://stg.pagure.io',
  'io.pagure.stg.pagure.pull-request.new' : 'https://stg.pagure.io',
  'io.pagure.stg.pagure.pull-request.rebased' : 'https://stg.pagure.io',
  'io.pagure.stg.pagure.pull-request.updated' : 'https://stg.pagure.io',
  'io.pagure.stg.pagure.pull-request.comment.added' : 'https://stg.pagure.io',
}

We should probably drop PAGURE_EVENTS_TESTONLY swtich.

Metadata Update from @praiskup:
- Issue untagged with: ansible
- Issue tagged with: code-cleanup

3 years ago

Metadata Update from @praiskup:
- Issue assigned to praiskup

3 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #1756 Closed 3 years ago