@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
2f29c7483891faa9294461ceea09b98bf92a802b64a221194a9827905c2af211
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
79b1b6109a8e53371de7307072a4d52a2db6fdef0443fc63630bea4b4f245835b5a339f37e5a6f7d4261b42e55826608da914f34b40207ffd1fc63d54294dd87
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 expired valid token for the org
2f29c7483891faa9294461ceea09b98bf92a802b64a221194a9827905c2af211
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 an non expired valid token for the org
2f29c7483891faa9294461ceea09b98bf92a802b64a221194a9827905c2af211
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.039
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
2f29c7483891faa9294461ceea09b98bf92a802b64a221194a9827905c2af211
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 a valid token for the org and specific channels
2f29c7483891faa9294461ceea09b98bf92a802b64a221194a9827905c2af211
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