@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
49abb8963e6d5c417ebb5e173d5ad3556a428e8982941f402df1b3bd5edaed18
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
147dffa95d7d78ec5545db2a88ed1add5ae17843b54dc3f3bd2d851bdf37379e624379e71c84c5bcdc6edb95c4ceddef0d1be09b58ea8676e9c474003f2eaf6f
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 expired valid token for the org
49abb8963e6d5c417ebb5e173d5ad3556a428e8982941f402df1b3bd5edaed18
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
49abb8963e6d5c417ebb5e173d5ad3556a428e8982941f402df1b3bd5edaed18
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
49abb8963e6d5c417ebb5e173d5ad3556a428e8982941f402df1b3bd5edaed18
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
49abb8963e6d5c417ebb5e173d5ad3556a428e8982941f402df1b3bd5edaed18
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