Add config
This commit is contained in:
parent
55301c87ae
commit
e66d5054d7
@ -63,6 +63,10 @@ class ToTestBase(object):
|
||||
|
||||
"""Base class to store the basic interface"""
|
||||
|
||||
need_same_build_number = False
|
||||
set_snapshot_number = False
|
||||
is_image_product = False
|
||||
|
||||
product_repo = 'images'
|
||||
product_arch = 'local'
|
||||
livecd_repo = 'images'
|
||||
@ -82,9 +86,10 @@ class ToTestBase(object):
|
||||
api_url = osc.conf.config['apiurl']
|
||||
self.api = StagingAPI(api_url, project=project)
|
||||
self.openqa_server = openqa_server
|
||||
self.test_subproject = test_subproject
|
||||
if not test_subproject:
|
||||
test_subproject = 'ToTest'
|
||||
self.test_project = '%s:%s' % (self.project, test_subproject)
|
||||
self.test_subproject = 'ToTest'
|
||||
self.test_project = '%s:%s' % (self.project, self.test_subproject)
|
||||
self.openqa = OpenQA_Client(server=openqa_server)
|
||||
self.load_issues_to_ignore()
|
||||
self.project_base = project.split(':')[0]
|
||||
@ -124,6 +129,9 @@ class ToTestBase(object):
|
||||
|
||||
raise NotFoundException("can't find %s version" % self.project)
|
||||
|
||||
def arch(self):
|
||||
return None
|
||||
|
||||
def current_sources(self):
|
||||
if self.take_source_from_product is None:
|
||||
raise Exception('No idea where to take the source version from')
|
||||
@ -1114,6 +1122,12 @@ class CommandlineInterface(cmdln.Cmdln):
|
||||
|
||||
return self.totest_class[project](project, self.options.dry, not release, self.options.obs_api_url, self.options.openqa_server)
|
||||
|
||||
def convert_image_products(self, arr):
|
||||
ret = []
|
||||
for product in arr:
|
||||
ret.append({product.package: product.archs})
|
||||
return ret
|
||||
|
||||
def do_run(self, subcmd, opts, project='openSUSE:Factory'):
|
||||
"""${cmd_name}: run the ToTest Manager
|
||||
|
||||
@ -1122,7 +1136,26 @@ class CommandlineInterface(cmdln.Cmdln):
|
||||
"""
|
||||
|
||||
totest = self._setup_totest(project)
|
||||
totest.totest()
|
||||
products = {'main': totest.main_products}
|
||||
products['ftp'] = totest.ftp_products
|
||||
products['livecds'] = self.convert_image_products(totest.livecd_products)
|
||||
products['images'] = self.convert_image_products(totest.image_products)
|
||||
products['container'] = self.convert_image_products(totest.container_products)
|
||||
|
||||
hash = { 'products': products }
|
||||
hash['openqa_group'] = totest.openqa_group()
|
||||
hash['take_source_from_product'] = totest.take_source_from_product
|
||||
hash['arch'] = totest.arch()
|
||||
hash['jobs_num'] = totest.jobs_num()
|
||||
hash['need_same_build_number'] = totest.need_same_build_number
|
||||
hash['set_snapshot_number'] = totest.set_snapshot_number
|
||||
hash['product_repo'] = totest.product_repo
|
||||
hash['is_image_product'] = totest.is_image_product
|
||||
hash['test_subproject'] = totest.test_subproject
|
||||
hash['openqa_server'] = totest.openqa_server
|
||||
|
||||
print(yaml.dump(hash, default_flow_style=False))
|
||||
#totest.totest()
|
||||
|
||||
def do_release(self, subcmd, opts, project='openSUSE:Factory'):
|
||||
"""${cmd_name}: manually release all media. Use with caution!
|
||||
|
19
ttm/config/SUSE:SLE-12-SP4:GA.yaml
Normal file
19
ttm/config/SUSE:SLE-12-SP4:GA.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
jobs_num: 70
|
||||
need_same_build_number: true
|
||||
openqa_group: Functional
|
||||
openqa_server: https://openqa.suse.de
|
||||
product_repo: images
|
||||
products:
|
||||
ftp:
|
||||
- _product:SLES-ftp-POOL-aarch64
|
||||
- _product:SLES-ftp-POOL-ppc64le
|
||||
- _product:SLES-ftp-POOL-s390x
|
||||
- _product:SLES-ftp-POOL-x86_64
|
||||
main:
|
||||
- _product:SLES-dvd5-DVD-aarch64
|
||||
- _product:SLES-dvd5-DVD-ppc64le
|
||||
- _product:SLES-dvd5-DVD-s390x
|
||||
- _product:SLES-dvd5-DVD-x86_64
|
||||
take_source_from_product: true
|
||||
test_subproject: TEST
|
||||
|
19
ttm/config/SUSE:SLE-15-SP1:GA.yaml
Normal file
19
ttm/config/SUSE:SLE-15-SP1:GA.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
jobs_num: 70
|
||||
need_same_build_number: true
|
||||
openqa_group: Functional
|
||||
openqa_server: https://openqa.suse.de
|
||||
product_repo: images
|
||||
products:
|
||||
ftp:
|
||||
- 000product:SLES-ftp-POOL-aarch64
|
||||
- 000product:SLES-ftp-POOL-ppc64le
|
||||
- 000product:SLES-ftp-POOL-s390x
|
||||
- 000product:SLES-ftp-POOL-x86_64
|
||||
main:
|
||||
- 000product:SLES-cd-DVD-aarch64
|
||||
- 000product:SLES-cd-DVD-ppc64le
|
||||
- 000product:SLES-cd-DVD-s390x
|
||||
- 000product:SLES-cd-DVD-x86_64
|
||||
take_source_from_product: true
|
||||
test_subproject: TEST
|
||||
|
19
ttm/config/SUSE:SLE-15:GA.yaml
Normal file
19
ttm/config/SUSE:SLE-15:GA.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
jobs_num: 70
|
||||
need_same_build_number: true
|
||||
openqa_group: Functional
|
||||
openqa_server: https://openqa.suse.de
|
||||
product_repo: images
|
||||
products:
|
||||
ftp:
|
||||
- 000product:SLES-ftp-POOL-aarch64
|
||||
- 000product:SLES-ftp-POOL-ppc64le
|
||||
- 000product:SLES-ftp-POOL-s390x
|
||||
- 000product:SLES-ftp-POOL-x86_64
|
||||
main:
|
||||
- 000product:SLES-cd-DVD-aarch64
|
||||
- 000product:SLES-cd-DVD-ppc64le
|
||||
- 000product:SLES-cd-DVD-s390x
|
||||
- 000product:SLES-cd-DVD-x86_64
|
||||
take_source_from_product: true
|
||||
test_subproject: TEST
|
||||
|
81
ttm/config/openSUSE:Factory.yaml
Normal file
81
ttm/config/openSUSE:Factory.yaml
Normal file
@ -0,0 +1,81 @@
|
||||
arch: x86_64
|
||||
jobs_num: 70
|
||||
openqa_group: openSUSE Tumbleweed
|
||||
openqa_server: https://openqa.opensuse.org
|
||||
product_repo: images
|
||||
products:
|
||||
container:
|
||||
- opensuse-tumbleweed-image:docker:
|
||||
- i586
|
||||
- x86_64
|
||||
- kubic-kured-image:
|
||||
- x86_64
|
||||
- kubic-pause-image:
|
||||
- i586
|
||||
- x86_64
|
||||
ftp:
|
||||
- 000product:openSUSE-ftp-ftp-i586_x86_64
|
||||
- 000product:openSUSE-Addon-NonOss-ftp-ftp-i586_x86_64
|
||||
images:
|
||||
- opensuse-tumbleweed-image:lxc:
|
||||
- i586
|
||||
- x86_64
|
||||
- openSUSE-Tumbleweed-JeOS:MS-HyperV:
|
||||
- x86_64
|
||||
- openSUSE-Tumbleweed-JeOS:OpenStack-Cloud:
|
||||
- x86_64
|
||||
- openSUSE-Tumbleweed-JeOS:VMware:
|
||||
- x86_64
|
||||
- openSUSE-Tumbleweed-JeOS:XEN:
|
||||
- x86_64
|
||||
- openSUSE-Tumbleweed-JeOS:kvm-and-xen:
|
||||
- x86_64
|
||||
- openSUSE-Tumbleweed-Kubic:MicroOS-podman-MS-HyperV:
|
||||
- x86_64
|
||||
- openSUSE-Tumbleweed-Kubic:kubeadm-cri-o-MS-HyperV:
|
||||
- x86_64
|
||||
- openSUSE-Tumbleweed-Kubic:MicroOS-podman-OpenStack-Cloud:
|
||||
- x86_64
|
||||
- openSUSE-Tumbleweed-Kubic:kubeadm-cri-o-OpenStack-Cloud:
|
||||
- x86_64
|
||||
- openSUSE-Tumbleweed-Kubic:MicroOS-podman-VMware:
|
||||
- x86_64
|
||||
- openSUSE-Tumbleweed-Kubic:kubeadm-cri-o-VMware:
|
||||
- x86_64
|
||||
- openSUSE-Tumbleweed-Kubic:MicroOS-podman-Vagrant-x86_64:
|
||||
- x86_64
|
||||
- openSUSE-Tumbleweed-Kubic:kubeadm-cri-o-Vagrant-x86_64:
|
||||
- x86_64
|
||||
- openSUSE-Tumbleweed-Kubic:MicroOS-podman-XEN:
|
||||
- x86_64
|
||||
- openSUSE-Tumbleweed-Kubic:kubeadm-cri-o-XEN:
|
||||
- x86_64
|
||||
- openSUSE-Tumbleweed-Kubic:MicroOS-podman-hardware-x86_64:
|
||||
- x86_64
|
||||
- openSUSE-Tumbleweed-Kubic:kubeadm-cri-o-hardware-x86_64:
|
||||
- x86_64
|
||||
- openSUSE-Tumbleweed-Kubic:MicroOS-podman-kvm-and-xen:
|
||||
- x86_64
|
||||
- openSUSE-Tumbleweed-Kubic:kubeadm-cri-o-kvm-and-xen:
|
||||
- x86_64
|
||||
livecds:
|
||||
- livecd-tumbleweed-kde:
|
||||
- i586
|
||||
- x86_64
|
||||
- livecd-tumbleweed-gnome:
|
||||
- i586
|
||||
- x86_64
|
||||
- livecd-tumbleweed-x11:
|
||||
- i586
|
||||
- x86_64
|
||||
- livecd-tumbleweed-xfce:
|
||||
- i586
|
||||
- x86_64
|
||||
main:
|
||||
- 000product:openSUSE-dvd5-dvd-i586
|
||||
- 000product:openSUSE-dvd5-dvd-x86_64
|
||||
- 000product:openSUSE-cd-mini-i586
|
||||
- 000product:openSUSE-cd-mini-x86_64
|
||||
- 000product:openSUSE-Tumbleweed-Kubic-dvd5-dvd-x86_64
|
||||
test_subproject: ToTest
|
||||
|
31
ttm/config/openSUSE:Factory:ARM.yaml
Normal file
31
ttm/config/openSUSE:Factory:ARM.yaml
Normal file
@ -0,0 +1,31 @@
|
||||
arch: aarch64
|
||||
jobs_num: 2
|
||||
openqa_group: openSUSE Tumbleweed AArch64
|
||||
openqa_server: https://openqa.opensuse.org
|
||||
product_repo: images
|
||||
products:
|
||||
container:
|
||||
- opensuse-tumbleweed-image:docker:
|
||||
- aarch64
|
||||
- kubic-kured-image:
|
||||
- aarch64
|
||||
- kubic-pause-image:
|
||||
- aarch64
|
||||
ftp:
|
||||
- 000product:openSUSE-ftp-ftp-aarch64
|
||||
- 000product:openSUSE-ftp-ftp-armv7hl
|
||||
- 000product:openSUSE-ftp-ftp-armv6hl
|
||||
images:
|
||||
- opensuse-tumbleweed-image:lxc:
|
||||
- armv6l
|
||||
- armv7l
|
||||
- aarch64
|
||||
livecds:
|
||||
- JeOS:
|
||||
- armv7l
|
||||
main:
|
||||
- 000product:openSUSE-cd-mini-aarch64
|
||||
- 000product:openSUSE-dvd5-dvd-aarch64
|
||||
- 000product:openSUSE-Tumbleweed-Kubic-dvd5-dvd-aarch64
|
||||
test_subproject: ToTest
|
||||
|
23
ttm/config/openSUSE:Factory:PowerPC.yaml
Normal file
23
ttm/config/openSUSE:Factory:PowerPC.yaml
Normal file
@ -0,0 +1,23 @@
|
||||
arch: ppc64le
|
||||
jobs_num: 4
|
||||
openqa_group: openSUSE Tumbleweed PowerPC
|
||||
openqa_server: https://openqa.opensuse.org
|
||||
product_repo: images
|
||||
products:
|
||||
container:
|
||||
- opensuse-tumbleweed-image:docker:
|
||||
- ppc64le
|
||||
- kubic-kured-image:
|
||||
- ppc64le
|
||||
- kubic-pause-image:
|
||||
- ppc64le
|
||||
ftp:
|
||||
- 000product:openSUSE-ftp-ftp-ppc64_ppc64le
|
||||
images:
|
||||
- opensuse-tumbleweed-image:lxc:
|
||||
- ppc64le
|
||||
main:
|
||||
- 000product:openSUSE-dvd5-dvd-ppc64le
|
||||
- 000product:openSUSE-cd-mini-ppc64le
|
||||
test_subproject: ToTest
|
||||
|
13
ttm/config/openSUSE:Factory:zSystems.yaml
Normal file
13
ttm/config/openSUSE:Factory:zSystems.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
arch: s390x
|
||||
jobs_num: 1
|
||||
openqa_group: openSUSE Tumbleweed s390x
|
||||
openqa_server: https://openqa.opensuse.org
|
||||
product_repo: images
|
||||
products:
|
||||
ftp:
|
||||
- 000product:openSUSE-ftp-ftp-s390x
|
||||
main:
|
||||
- 000product:openSUSE-dvd5-dvd-s390x
|
||||
- 000product:openSUSE-cd-mini-s390x
|
||||
test_subproject: ToTest
|
||||
|
31
ttm/config/openSUSE:Leap:15.0:Images.yaml
Normal file
31
ttm/config/openSUSE:Leap:15.0:Images.yaml
Normal file
@ -0,0 +1,31 @@
|
||||
is_image_product: true
|
||||
jobs_num: 13
|
||||
openqa_group: openSUSE Leap 15.0 Images
|
||||
openqa_server: https://openqa.opensuse.org
|
||||
product_repo: images
|
||||
products:
|
||||
images:
|
||||
- livecd-leap-gnome:
|
||||
- x86_64
|
||||
- livecd-leap-kde:
|
||||
- x86_64
|
||||
- livecd-leap-x11:
|
||||
- x86_64
|
||||
- opensuse-leap-image:docker:
|
||||
- x86_64
|
||||
- opensuse-leap-image:lxc:
|
||||
- x86_64
|
||||
- kiwi-templates-Leap15-JeOS:MS-HyperV:
|
||||
- x86_64
|
||||
- kiwi-templates-Leap15-JeOS:OpenStack-Cloud:
|
||||
- x86_64
|
||||
- kiwi-templates-Leap15-JeOS:VMware:
|
||||
- x86_64
|
||||
- kiwi-templates-Leap15-JeOS:XEN:
|
||||
- x86_64
|
||||
- kiwi-templates-Leap15-JeOS:kvm-and-xen:
|
||||
- x86_64
|
||||
set_snapshot_number: true
|
||||
take_source_from_product: true
|
||||
test_subproject: ToTest
|
||||
|
16
ttm/config/openSUSE:Leap:15.0:Ports.yaml
Normal file
16
ttm/config/openSUSE:Leap:15.0:Ports.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
jobs_num: 10
|
||||
need_same_build_number: true
|
||||
openqa_group: openSUSE Leap 15.0 AArch64
|
||||
openqa_server: https://openqa.opensuse.org
|
||||
product_repo: images_arm
|
||||
products:
|
||||
ftp:
|
||||
- 000product:openSUSE-ftp-ftp-aarch64
|
||||
- 000product:openSUSE-ftp-ftp-armv7hl
|
||||
main:
|
||||
- 000product:openSUSE-cd-mini-aarch64
|
||||
- 000product:openSUSE-dvd5-dvd-aarch64
|
||||
set_snapshot_number: true
|
||||
take_source_from_product: true
|
||||
test_subproject: ToTest
|
||||
|
15
ttm/config/openSUSE:Leap:15.1.yaml
Normal file
15
ttm/config/openSUSE:Leap:15.1.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
jobs_num: 70
|
||||
need_same_build_number: true
|
||||
openqa_group: openSUSE Leap 15
|
||||
openqa_server: https://openqa.opensuse.org
|
||||
product_repo: images
|
||||
products:
|
||||
ftp:
|
||||
- 000product:openSUSE-ftp-ftp-x86_64
|
||||
- 000product:openSUSE-Addon-NonOss-ftp-ftp-x86_64
|
||||
main:
|
||||
- 000product:openSUSE-cd-mini-x86_64
|
||||
- 000product:openSUSE-dvd5-dvd-x86_64
|
||||
take_source_from_product: true
|
||||
test_subproject: ToTest
|
||||
|
15
ttm/config/openSUSE:Leap:15.1:ARM.yaml
Normal file
15
ttm/config/openSUSE:Leap:15.1:ARM.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
jobs_num: 10
|
||||
need_same_build_number: true
|
||||
openqa_group: openSUSE Leap 15 AArch64
|
||||
openqa_server: https://openqa.opensuse.org
|
||||
product_repo: images
|
||||
products:
|
||||
ftp:
|
||||
- 000product:openSUSE-ftp-ftp-aarch64
|
||||
- 000product:openSUSE-ftp-ftp-armv7hl
|
||||
main:
|
||||
- 000product:openSUSE-cd-mini-aarch64
|
||||
- 000product:openSUSE-dvd5-dvd-aarch64
|
||||
take_source_from_product: true
|
||||
test_subproject: ToTest
|
||||
|
18
ttm/config/openSUSE:Leap:15.1:ARM:Images.yaml
Normal file
18
ttm/config/openSUSE:Leap:15.1:ARM:Images.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
is_image_product: true
|
||||
jobs_num: 2
|
||||
openqa_group: openSUSE Leap 15.1 AArch64 Images
|
||||
openqa_server: https://openqa.opensuse.org
|
||||
product_repo: images
|
||||
products:
|
||||
container:
|
||||
- opensuse-leap-image:docker:
|
||||
- aarch64
|
||||
images:
|
||||
- JeOS:JeOS-efi.aarch64:
|
||||
- aarch64
|
||||
- JeOS:
|
||||
- armv7l
|
||||
set_snapshot_number: true
|
||||
take_source_from_product: true
|
||||
test_subproject: ToTest
|
||||
|
32
ttm/config/openSUSE:Leap:15.1:Images.yaml
Normal file
32
ttm/config/openSUSE:Leap:15.1:Images.yaml
Normal file
@ -0,0 +1,32 @@
|
||||
is_image_product: true
|
||||
jobs_num: 13
|
||||
openqa_group: openSUSE Leap 15.1 Images
|
||||
openqa_server: https://openqa.opensuse.org
|
||||
product_repo: images
|
||||
products:
|
||||
container:
|
||||
- opensuse-leap-image:docker:
|
||||
- x86_64
|
||||
images:
|
||||
- livecd-leap-gnome:
|
||||
- x86_64
|
||||
- livecd-leap-kde:
|
||||
- x86_64
|
||||
- livecd-leap-x11:
|
||||
- x86_64
|
||||
- opensuse-leap-image:lxc:
|
||||
- x86_64
|
||||
- openSUSE-Leap-15.1-JeOS:MS-HyperV:
|
||||
- x86_64
|
||||
- openSUSE-Leap-15.1-JeOS:OpenStack-Cloud:
|
||||
- x86_64
|
||||
- openSUSE-Leap-15.1-JeOS:VMware:
|
||||
- x86_64
|
||||
- openSUSE-Leap-15.1-JeOS:XEN:
|
||||
- x86_64
|
||||
- openSUSE-Leap-15.1-JeOS:kvm-and-xen:
|
||||
- x86_64
|
||||
set_snapshot_number: true
|
||||
take_source_from_product: true
|
||||
test_subproject: ToTest
|
||||
|
14
ttm/config/openSUSE:Leap:15.1:PowerPC.yaml
Normal file
14
ttm/config/openSUSE:Leap:15.1:PowerPC.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
jobs_num: 10
|
||||
need_same_build_number: true
|
||||
openqa_group: openSUSE Leap 15 PowerPC
|
||||
openqa_server: https://openqa.opensuse.org
|
||||
product_repo: images
|
||||
products:
|
||||
ftp:
|
||||
- 000product:openSUSE-ftp-ftp-ppc64le
|
||||
main:
|
||||
- 000product:openSUSE-cd-mini-ppc64le
|
||||
- 000product:openSUSE-dvd5-dvd-ppc64le
|
||||
take_source_from_product: true
|
||||
test_subproject: ToTest
|
||||
|
Loading…
x
Reference in New Issue
Block a user