@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
0b16896fe8afebfcdd059d82e426d5e537b880bd9f9d660a23c52de8a1388505
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.140
Then
the download should get no error
00:00:00.000
@scope_salt
Scenario: Download package, user with an invalid token for the org
040b74bc58c79758af46f02c92fb46f8a05ca09b4c7aa1c3e8abbbe5ce93e5d499318f389d2deaad2ea737027724c81e7eeb3ef080fcb20e6cb9a02d889709fc
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.159
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
0b16896fe8afebfcdd059d82e426d5e537b880bd9f9d660a23c52de8a1388505
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 a 403 response
00:00:00.000
@scope_salt
Scenario: Download package, user with an non expired valid token for the org
0b16896fe8afebfcdd059d82e426d5e537b880bd9f9d660a23c52de8a1388505
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
0b16896fe8afebfcdd059d82e426d5e537b880bd9f9d660a23c52de8a1388505
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.094
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
0b16896fe8afebfcdd059d82e426d5e537b880bd9f9d660a23c52de8a1388505
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.107
Then
the download should get a 403 response
00:00:00.000