@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
d1d70ddc9768482b3fa1b38de479c86a721d61c7afff1fc3239cd1e2d425e590
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.114
Then
the download should get no error
00:00:00.000
@scope_salt
Scenario: Download package, user with an invalid token for the org
8e793cbaca6d1fc6f37fc5568574f8c9a80806f98fc2e63670c258347dc74c1da1f3a60c03453772ca1d3c73d17f441e0676f73ce50394dd8cd471f3d7332a79
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
d1d70ddc9768482b3fa1b38de479c86a721d61c7afff1fc3239cd1e2d425e590
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.102
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
d1d70ddc9768482b3fa1b38de479c86a721d61c7afff1fc3239cd1e2d425e590
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 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
d1d70ddc9768482b3fa1b38de479c86a721d61c7afff1fc3239cd1e2d425e590
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
@scope_salt
Scenario: Download package, user with a valid token for the org and specific channels
d1d70ddc9768482b3fa1b38de479c86a721d61c7afff1fc3239cd1e2d425e590
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.096
Then
the download should get a 403 response
00:00:00.000