@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
33d1836375e3eb0af1c9cf25ae0faebe13f43dbcb1a1b312f0172b9fd00d5a6f
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 an invalid token for the org
e6b4803c4d0492ec5e073b8b00cf58894044f680c4add2ff3dcf2516e9ada77c37f29c658289c57c5e1a18f6751eee186f82641e7b3ebbec049bfe5a6692ffba
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
33d1836375e3eb0af1c9cf25ae0faebe13f43dbcb1a1b312f0172b9fd00d5a6f
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
33d1836375e3eb0af1c9cf25ae0faebe13f43dbcb1a1b312f0172b9fd00d5a6f
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.109
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
33d1836375e3eb0af1c9cf25ae0faebe13f43dbcb1a1b312f0172b9fd00d5a6f
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.097
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
33d1836375e3eb0af1c9cf25ae0faebe13f43dbcb1a1b312f0172b9fd00d5a6f
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