@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
d2259e7f96f49ea02cc15f3764755bc67464dc6289882f4c1e82c0cc5eeb68f2
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.050
Then
the download should get no error
00:00:00.000
@scope_salt
Scenario: Download package, user with an invalid token for the org
8ad5c65d6021f18b73685da2532b24917d2dc293b922d2d6239893442a5c85b1afeb3af6c09ca27426ff69d95bca69d2c3476a3077163e0d81d106c5cf672866
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.027
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
d2259e7f96f49ea02cc15f3764755bc67464dc6289882f4c1e82c0cc5eeb68f2
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.038
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
d2259e7f96f49ea02cc15f3764755bc67464dc6289882f4c1e82c0cc5eeb68f2
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.033
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
d2259e7f96f49ea02cc15f3764755bc67464dc6289882f4c1e82c0cc5eeb68f2
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.027
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
d2259e7f96f49ea02cc15f3764755bc67464dc6289882f4c1e82c0cc5eeb68f2
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.029
Then
the download should get a 403 response
00:00:00.000