@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
9b4247f0244af634d8712fb0c15d02fdbb1976d72a094eff03b4e70c4e31624a
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.049
Then
the download should get no error
00:00:00.000
@scope_salt
Scenario: Download package, user with an invalid token for the org
7c705069c0990f4ae64a2dc6215a7682651430bb973bb2aa3e2820c23d46c3b0b0b6755278c627fb7af017a61688bac469abba302b0b8fcbc10325ecd1363e62
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
9b4247f0244af634d8712fb0c15d02fdbb1976d72a094eff03b4e70c4e31624a
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.032
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
9b4247f0244af634d8712fb0c15d02fdbb1976d72a094eff03b4e70c4e31624a
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.034
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
9b4247f0244af634d8712fb0c15d02fdbb1976d72a094eff03b4e70c4e31624a
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
9b4247f0244af634d8712fb0c15d02fdbb1976d72a094eff03b4e70c4e31624a
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