@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
98b0d5a3a312a80c080edaa8998c19d7d168a548ba9596baa2c17bb064552793
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
ffbe764aad7b71b1f291a93b67c8d04af764a83a57b4c1f06607ec882b98d8b29160dd52a4df0b5f115051dcd8360a2e27e57a777f0c7d4dbdf6714533c6a844
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
@scope_salt
Scenario: Download package, user with an expired valid token for the org
98b0d5a3a312a80c080edaa8998c19d7d168a548ba9596baa2c17bb064552793
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.028
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
98b0d5a3a312a80c080edaa8998c19d7d168a548ba9596baa2c17bb064552793
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.035
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
98b0d5a3a312a80c080edaa8998c19d7d168a548ba9596baa2c17bb064552793
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
98b0d5a3a312a80c080edaa8998c19d7d168a548ba9596baa2c17bb064552793
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