@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
5bebb71c1fe2a96eb02739335aaadab0345b76cc388b2b3001f04941e9a0f9d9
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
e05c5a12d8dc23f8d75638ef41f1a1de60bce909c1b453e86a301fe7ed1d33ca586b6b8f5e6fb2b31645a0e2bab29e1202e7f13816498397e9061a5035b9520a
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
@scope_salt
Scenario: Download package, user with an expired valid token for the org
5bebb71c1fe2a96eb02739335aaadab0345b76cc388b2b3001f04941e9a0f9d9
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.028
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
5bebb71c1fe2a96eb02739335aaadab0345b76cc388b2b3001f04941e9a0f9d9
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.039
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
5bebb71c1fe2a96eb02739335aaadab0345b76cc388b2b3001f04941e9a0f9d9
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.028
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
5bebb71c1fe2a96eb02739335aaadab0345b76cc388b2b3001f04941e9a0f9d9
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.028
Then
the download should get a 403 response
00:00:00.000