@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
23ab5abdd65d7e2e88ed7c5f04e15d580ee0a4495524298803fef50c1702489a
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.116
Then
the download should get no error
00:00:00.000
@scope_salt
Scenario: Download package, user with an invalid token for the org
74db2299a8c5da61dc51468bb9fa0e46e5ca29db28a4c63c582a0356c5728b98176debedc62bf40166adfdc5710e9694ea9300fbe8b1bde91370857abdd6d164
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
23ab5abdd65d7e2e88ed7c5f04e15d580ee0a4495524298803fef50c1702489a
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
23ab5abdd65d7e2e88ed7c5f04e15d580ee0a4495524298803fef50c1702489a
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.097
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
23ab5abdd65d7e2e88ed7c5f04e15d580ee0a4495524298803fef50c1702489a
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 a valid token for the org and specific channels
23ab5abdd65d7e2e88ed7c5f04e15d580ee0a4495524298803fef50c1702489a
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