Add the same link to openqa than what is on obs_factory

This commit is contained in:
Stephan Kulow 2020-01-31 07:54:12 +01:00
parent d38759cc26
commit c11337dad7
2 changed files with 13 additions and 2 deletions

View File

@ -97,6 +97,8 @@ class Project(object):
self.fetcher = fetcher
self.name = name
self.nick = kwargs.get('nick')
self.openqa_version = kwargs.get('openqa_version')
self.openqa_group = kwargs.get('openqa_group')
self.download_url = kwargs.get('download_url')
self.all_archs = fetcher.generate_all_archs(name)
self.ttm_status = fetcher.fetch_ttm_status(name)
@ -135,7 +137,7 @@ if __name__ == '__main__':
app = Flask(__name__)
fetcher.add('openSUSE:Factory', nick='Factory', download_url='https://download.opensuse.org/tumbleweed/iso/')
fetcher.add('openSUSE:Factory', nick='Factory', download_url='https://download.opensuse.org/tumbleweed/iso/', openqa_group='openSUSE Tumbleweed', openqa_version='Tumbleweed')
fetcher.add('openSUSE:Factory:Live', nick='Live')
fetcher.add('openSUSE:Factory:Rings:0-Bootstrap', nick='Ring 0')
fetcher.add('openSUSE:Factory:Rings:1-MinimalX', nick='Ring 1')

View File

@ -71,7 +71,16 @@
{% endif %}
</td>
<td>
{{ project.ttm_status.get('testing', 'n.a.') }}
{% set ttm_testing = project.ttm_status.get('testing') %}
{% if ttm_testing %}
{% if project.openqa_version %}
<a href='https://openqa.opensuse.org/tests/overview?distri=opensuse&version={{ project.openqa_version }}'>{{ ttm_testing }}</a>
{% else %}
{{ ttm_testing }}
{% endif %}
{% else %}
n.a.
{% endif %}
</td>
<td>
{% set ttm_published = project.ttm_status.get('published', None) %}