@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
33a43d944e1d7b7f293e3f576ccbf0f229de185292d8caffce3cbe3007544237
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.113
Then
the download should get no error
00:00:00.000
@scope_salt
Scenario: Download package, user with an invalid token for the org
f1a415ce65ec779cff86faa2b4a0f04e4eacf580d8f533912346630d5bd847b3dd6e08f8e25c61d771f6563a5e500d5d2ff83156cbbe7600a856a7ead479e121
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.093
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
33a43d944e1d7b7f293e3f576ccbf0f229de185292d8caffce3cbe3007544237
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.092
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
33a43d944e1d7b7f293e3f576ccbf0f229de185292d8caffce3cbe3007544237
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.100
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
33a43d944e1d7b7f293e3f576ccbf0f229de185292d8caffce3cbe3007544237
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.091
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
33a43d944e1d7b7f293e3f576ccbf0f229de185292d8caffce3cbe3007544237
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.095
Then
the download should get a 403 response
00:00:00.000