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