@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
399ddd1e030052a8890e41f11136cac09772d1d8fa233ba2a36e98eb24e00f64
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.111
Then
the download should get no error
00:00:00.000
@scope_salt
Scenario: Download package, user with an invalid token for the org
2571b083a6f76c80d6dcad99d4b0b6b1421590471ded93100d19404ccc34ccb939714d9b7c4369a51c71d0ef80546f90413da2c6ab091c7a47717c9dcd681796
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 expired valid token for the org
399ddd1e030052a8890e41f11136cac09772d1d8fa233ba2a36e98eb24e00f64
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
399ddd1e030052a8890e41f11136cac09772d1d8fa233ba2a36e98eb24e00f64
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.105
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
399ddd1e030052a8890e41f11136cac09772d1d8fa233ba2a36e98eb24e00f64
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.117
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
399ddd1e030052a8890e41f11136cac09772d1d8fa233ba2a36e98eb24e00f64
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.094
Then
the download should get a 403 response
00:00:00.000