@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
23dfabc3a9ec191b21f470c99b35df379378e493401f6e7a1dc653706c4b6415
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
67230ec78ecdf5e7cc6eb7e8a167445bd14227a191e6ecd2ce613e3a26b47d36fb05686e5c5f3abfd463a97f35a91ac4e1c2a10c857f9ca91c6df522dc2b0437
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
23dfabc3a9ec191b21f470c99b35df379378e493401f6e7a1dc653706c4b6415
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.030
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
23dfabc3a9ec191b21f470c99b35df379378e493401f6e7a1dc653706c4b6415
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.037
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
23dfabc3a9ec191b21f470c99b35df379378e493401f6e7a1dc653706c4b6415
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 a valid token for the org and specific channels
23dfabc3a9ec191b21f470c99b35df379378e493401f6e7a1dc653706c4b6415
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