@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
168a5c15c5be168f29db4ce1d1e797f35f58ba1a0a11e5ce7e6a1bd30c5b9002
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.119
Then
the download should get no error
00:00:00.000
@scope_salt
Scenario: Download package, user with an invalid token for the org
e522cf075e6c9b3323b62148b9a60006e18f0b55b3733aacc03ba6f24bea5fbee165065f4eb8319a9779222793ff3dfb697497295d8bd64b945a7a4acda5a7b7
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 expired valid token for the org
168a5c15c5be168f29db4ce1d1e797f35f58ba1a0a11e5ce7e6a1bd30c5b9002
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.091
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
168a5c15c5be168f29db4ce1d1e797f35f58ba1a0a11e5ce7e6a1bd30c5b9002
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.098
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
168a5c15c5be168f29db4ce1d1e797f35f58ba1a0a11e5ce7e6a1bd30c5b9002
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 a valid token for the org and specific channels
168a5c15c5be168f29db4ce1d1e797f35f58ba1a0a11e5ce7e6a1bd30c5b9002
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.101
Then
the download should get a 403 response
00:00:00.000