Feature: 0016 - Create activation keys
Description: In order to register systems to the server
As the testing user
I want to use activation keys
File name: srv_create_activationkey.feature
Relative path: reposync/srv_create_activationkey.feature
When
I create an activation key with id "SUSE-KEY-x86_64", description "SUSE Test Key x86_64", limit of 20 and contact method "default"
00:00:02.182
Then
I should get the new activation key "1-SUSE-KEY-x86_64"
00:00:00.731
When
I create an activation key with id "RH-LIKE-KEY", description "RedHat like Test Key", base channel "fake-base-channel-rh-like", limit of 20 and contact method "default"
00:00:01.439
Then
I should get the new activation key "1-RH-LIKE-KEY"
00:00:00.679
When
I create an activation key with id "DEBLIKE-KEY", description "Debian-like Test Key", base channel "fake-base-channel-debian-like", limit of 20 and contact method "default"
00:00:01.370
Then
I should get the new activation key "1-DEBLIKE-KEY"
00:00:00.671
When
I create an activation key with id "SUSE-SSH-KEY-x86_64", description "SUSE SSH Test Key x86_64", limit of 20 and contact method "ssh-push"
00:00:01.360
Then
I should get the new activation key "1-SUSE-SSH-KEY-x86_64"
00:00:00.687
@sshminion
Scenario: Create an activation key with a channel for salt-ssh via tunnel
When
I create an activation key with id "SUSE-SSH-TUNNEL-KEY-x86_64", description "SUSE SSH Tunnel Test Key x86_64", limit of 20 and contact method "ssh-push-tunnel"
00:00:01.346
Then
I should get the new activation key "1-SUSE-SSH-TUNNEL-KEY-x86_64"
00:00:00.648
When
I create an activation key with id "BUILD-HOST-KEY-x86_64", description "Build host Key x86_64"
00:00:01.313
And
I set the entitlements of the activation key "1-BUILD-HOST-KEY-x86_64" to "container_build_host, osimage_build_host"
00:00:00.666
Then
I should get the new activation key "1-BUILD-HOST-KEY-x86_64"
00:00:00.654