@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
0969bfeebcd6ee9c6199ca9f8cdb56ea260705a29f518b83114d74ee79a9f27f
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.115
Then
the download should get no error
00:00:00.000
@scope_salt
Scenario: Download package, user with an invalid token for the org
8bec9cdd7cd8602862fb30130e78cb1da3ab12aeede98b6bf2c7acd8670e1754e615d0c901d990383e8db7aba0ec6fddde6f5a9dfc5f72022c78bc42a54c3859
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
0969bfeebcd6ee9c6199ca9f8cdb56ea260705a29f518b83114d74ee79a9f27f
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
0969bfeebcd6ee9c6199ca9f8cdb56ea260705a29f518b83114d74ee79a9f27f
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.109
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
0969bfeebcd6ee9c6199ca9f8cdb56ea260705a29f518b83114d74ee79a9f27f
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
0969bfeebcd6ee9c6199ca9f8cdb56ea260705a29f518b83114d74ee79a9f27f
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.104
Then
the download should get a 403 response
00:00:00.000