@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
18c2d8426ccd4879a6ef353a28ed2566f5d6da6f830b93df58cbda987e33a6d6
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.116
Then
the download should get no error
00:00:00.000
@scope_salt
Scenario: Download package, user with an invalid token for the org
20b41794d55424fb1297b6b11994c252ae67cebc49aa9bdd47299a6b8f3ca3b3d21dde871f35ce8f8323e9c1992cccac546bcb1f1655cc9af6b19980856ed342
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
18c2d8426ccd4879a6ef353a28ed2566f5d6da6f830b93df58cbda987e33a6d6
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.124
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
18c2d8426ccd4879a6ef353a28ed2566f5d6da6f830b93df58cbda987e33a6d6
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 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
18c2d8426ccd4879a6ef353a28ed2566f5d6da6f830b93df58cbda987e33a6d6
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 a valid token for the org and specific channels
18c2d8426ccd4879a6ef353a28ed2566f5d6da6f830b93df58cbda987e33a6d6
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