@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
1b93bdfbfe13406eb4763d966f3e6691e2b50cbcde624027dc73d6cf1f2fca1a
When
I try to download "virgo-dummy-2.0-1.1.noarch.rpm" from channel "fake-rpm-suse-channel"
00:00:00.125
Then
the download should get no error
00:00:00.000
@scope_salt
Scenario: Download package, user with an invalid token for the org
d872c3ac324bfd8e974f581b67600226b46c2913a933ce154e946cd4eaf782308037eb7f4955b13995cd8e30e978069e23d24a08e736a829725b6f09b567fac7
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 a 403 response
00:00:00.000
@scope_salt
Scenario: Download package, user with an expired valid token for the org
1b93bdfbfe13406eb4763d966f3e6691e2b50cbcde624027dc73d6cf1f2fca1a
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
1b93bdfbfe13406eb4763d966f3e6691e2b50cbcde624027dc73d6cf1f2fca1a
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 a valid token that cant be used until tomorrow for the org
1b93bdfbfe13406eb4763d966f3e6691e2b50cbcde624027dc73d6cf1f2fca1a
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 a valid token for the org and specific channels
1b93bdfbfe13406eb4763d966f3e6691e2b50cbcde624027dc73d6cf1f2fca1a
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 a 403 response
00:00:00.000