Logo: Relish

  1. Sign in

Project: Rebuild

rbld search

  • @with-registry

As a CLI user
I want to be able to search for published environments with rbld search

Scenarios
search help succeeds and usage is printed
Given
I successfully request help for rbld search
Then
help output should contain:
Search remote registry for published environments
no remote registry configured
Given
remote registry is not configured
When
I run rbld search
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 search some-env
Then
the output should contain "Remote type __DUMMY__ is unknown"
And
it should fail with "ERROR: Failed to search in "
remote registry is not accessible
Given
remote registry is not accessible
When
I run rbld search
Then
it should fail with "Failed to access registry at"
And
the output should contain "ERROR: Failed to search in"
search matching functionality
Given
my rebuild registry is registry contents
When
I run rbld search wildcard
Then
it should pass with:
Searching in
And
the output should or should not contain:
text
Examples: Empty registry
registry contents wildcard should or should not contain text
empty should not contain test-env
Examples: Populated registry

We expect that following environments are published:
test-env1:v001
test-env1:v002
test-env2:v001

registry contents wildcard should or should not contain text
populated with test environments should contain test-env1:v001
populated with test environments should contain test-env1:v002
populated with test environments should contain test-env2:v001
populated with test environments test-env should contain test-env1:v001
populated with test environments test-env should contain test-env1:v002
populated with test environments test-env should contain test-env2:v001
populated with test environments test-env1 should contain test-env1:v001
populated with test environments test-env1 should contain test-env1:v002
populated with test environments test-env1 should not contain test-env2
populated with test environments test-env1:v001 should contain test-env1:v001
populated with test environments test-env1:v001 should not contain test-env1:v002
populated with test environments test-env1:v001 should not contain test-env2
populated with test environments nonexisting should not contain test-env

Last published almost 5 years ago by Rebuild.