@scope_salt
Feature: 0092 - Endpoint to download packages
Description: In order to distribute software to the clients
As an authorized user
I want to download packages from the channels
File name: srv_salt_download_endpoint.feature
Relative path: secondary/srv_salt_download_endpoint.feature
@scope_salt
Scenario: Download package, user with a valid token for the org
266266a0b5353caa2c16b458ae91902f7a62d5a75a6723b01809a1cc0b1ba53b
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.571
Then
the download should get no error
00:00:00.000
@scope_salt
Scenario: Download package, user with an invalid token for the org
4e9b635bbcb6934082292565e614d1fa699310b590b11690805b9b59ba1d8f878126b0458a64fff4c6aba6cc961e960194f62595f8bf5129ddd4d9c6eb830623
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.136
Then
the download should get a 403 response
00:00:00.000
@scope_salt
Scenario: Download package, user with an expired valid token for the org
266266a0b5353caa2c16b458ae91902f7a62d5a75a6723b01809a1cc0b1ba53b
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.094
Then
the download should get a 403 response
00:00:00.000
@scope_salt
Scenario: Download package, user with an non expired valid token for the org
266266a0b5353caa2c16b458ae91902f7a62d5a75a6723b01809a1cc0b1ba53b
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.098
Then
the download should get no error
00:00:00.000
@scope_salt
Scenario: Download package, user with a valid token that cant be used until tomorrow for the org
266266a0b5353caa2c16b458ae91902f7a62d5a75a6723b01809a1cc0b1ba53b
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.094
Then
the download should get a 403 response
00:00:00.000
@scope_salt
Scenario: Download package, user with a valid token for the org and specific channels
266266a0b5353caa2c16b458ae91902f7a62d5a75a6723b01809a1cc0b1ba53b
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.102
Then
the download should get a 403 response
00:00:00.000