Logo: Relish

  1. Sign in

Project: Rebuild

rbld deploy

  • @with-registry

As a CLI user
I want to be able to deploy environments with rbld deploy

Scenarios
deploy help succeeds and usage is printed
Given
I successfully request help for rbld deploy
And
help output should contain "rbld deploy [OPTIONS] [ENVIRONMENT[:TAG]]"
Then
help output should contain "Deploy environment from remote registry"
no remote registry configured
Given
remote registry is not configured
When
I run rbld deploy some-env:some-tag
Then
it should fail with:
ERROR: Remote not defined
remote registry type in not known
Given
remote registry type is "__DUMMY__"
When
I run rbld deploy some-env:some-tag
Then
it should fail with "ERROR: Remote type __DUMMY__ is unknown"
remote registry is not accessible
Given
remote registry is not accessible
When
I run rbld deploy some-env:some-tag
Then
it should fail with:
ERROR: Failed to access registry at
deploy environment that does not exist in the registry
Given
my rebuild registry is empty
When
I run rbld deploy environment name
Then
it should fail with:
Environment full environment name does not exist in the registry
Examples:
environment name full environment name
nonexisting nonexisting:initial
nonexisting:sometag nonexisting:sometag
deploy a new environment
Given
my rebuild registry contains environment test-env1:v001
And
non-existing environment test-env1:v001
When
I run rbld deploy test-env1:v001
Then
it should pass with:
Successfully deployed test-env1:v001
And
environment test-env1:v001 should exist
deploy already deployed environment
Given
existing environment test-env1:v001
When
I run rbld deploy test-env1:v001
Then
it should fail with:
ERROR: Environment test-env1:v001 already exists

Last published almost 5 years ago by Rebuild.