Skip to content

Commit

Permalink
Merge pull request #80 from christophd/issue/61/run-recursive
Browse files Browse the repository at this point in the history
fix[#61]: Run tests recursive
  • Loading branch information
christophd authored Apr 6, 2020
2 parents 7702a64 + 39a84f9 commit d2c603a
Show file tree
Hide file tree
Showing 19 changed files with 181 additions and 77 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ spec:
help to test for whether an integration is running, is producing some expected output and also whether an HTTP endpoint
returns an expected response.
The example below executes some dummy steps to check that Yaks has been installed correctly.
The example below executes some dummy steps to check that YAKS has been installed correctly.
```
apiVersion: org.citrusframework.yaks/v1alpha1
Expand All @@ -90,8 +90,8 @@ spec:
Then YAKS rocks!
```
Refer to the [Yaks repository](https://github.com/citrusframework/yaks) for more complex examples.
displayName: Yaks Operator
Refer to the [YAKS repository](https://github.com/citrusframework/yaks) for more complex examples.
displayName: YAKS Operator
icon:
- base64data: PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9k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A3NzcyNyB6IgogICAgICAgICBzdHlsZT0iZm9udC1zdHlsZTpub3JtYWw7Zm9udC12YXJpYW50Om5vcm1hbDtmb250LXdlaWdodDpib2xkO2ZvbnQtc3RyZXRjaDpub3JtYWw7Zm9udC1mYW1pbHk6J0NvdXJpZXIgMTAgUGl0Y2gnOy1pbmtzY2FwZS1mb250LXNwZWNpZmljYXRpb246J0NvdXJpZXIgMTAgUGl0Y2ggQm9sZCc7ZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZS13aWR0aDowLjM0MTA2MDE2IgogICAgICAgICBpZD0icGF0aDg3MyIgLz4KICAgIDwvZz4KICA8L2c+Cjwvc3ZnPgo=
mediatype: image/svg+xml
Expand Down
2 changes: 1 addition & 1 deletion examples/extension/extension.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ Feature: extension

Scenario: print extended slogan
Given YAKS does Cloud-Native BDD testing
Then Yaks can be extended!
Then YAKS can be extended!
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ public class SomeOtherSteps {
@CitrusResource
private TestRunner runner;

@Then("^Yaks can be extended!$")
@Then("^YAKS can be extended!$")
public void yaksCanBeExtended() {
runner.echo("Yaks can be extended!");
runner.echo("YAKS can be extended!");
}

}
4 changes: 4 additions & 0 deletions examples/namespace/namespace.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Feature: Run test in temp namespace

Scenario: print message
Given print 'Hello from temporary namespace!'
4 changes: 4 additions & 0 deletions examples/namespace/yaks-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
config:
namespace:
temporary: true
autoRemove: true
4 changes: 4 additions & 0 deletions examples/test-group/sub-group/test3.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Feature: test3

Scenario: print message
Given print 'Hello from Test 3!'
4 changes: 4 additions & 0 deletions examples/test-group/sub-group/yaks-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
config:
namespace:
temporary: true
autoRemove: true
4 changes: 4 additions & 0 deletions examples/test-group/test1.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Feature: test1

Scenario: print message
Given print 'Hello from Test 1!'
4 changes: 4 additions & 0 deletions examples/test-group/test2.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Feature: test2

Scenario: print message
Given print 'Hello from Test 2!'
4 changes: 4 additions & 0 deletions examples/test-group/yaks-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
config:
namespace:
temporary: false
autoRemove: true
2 changes: 1 addition & 1 deletion hack/operatorsource.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# OperatorSource used to publish the Yaks operator directly on OperatorHub
# OperatorSource used to publish the YAKS operator directly on OperatorHub
apiVersion: operators.coreos.com/v1
kind: OperatorSource
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Feature: Test reporter

Scenario: Success test
Given echo "Yaks rocks!"
Given echo "YAKS rocks!"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Feature: Standard steps

Scenario: print log messages
Given print 'BDD testing on Kubernetes with Yaks'
Then print 'Yaks rocks!'
Given print 'BDD testing on Kubernetes with YAKS'
Then print 'YAKS rocks!'
16 changes: 9 additions & 7 deletions pkg/cmd/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,32 @@ import (
"gopkg.in/yaml.v2"
)

type TestConfig struct {
type RunConfig struct {
Config Config `yaml:"config"`
}

type Config struct {
Recursive bool `yaml:"recursive"`
Namespace NamespaceConfig
}

type NamespaceConfig struct {
Temporary bool `yaml:"temporary"`
AutoRemove bool `yaml:"autoremove"`
Name string `yaml:"name"`
Temporary bool `yaml:"temporary"`
AutoRemove bool `yaml:"autoremove"`
}

func newWithDefaults() *TestConfig {
func newWithDefaults() *RunConfig {
ns := NamespaceConfig{
AutoRemove: true,
Temporary: false,
}

var config = Config{Namespace: ns}
return &TestConfig{Config: config}
var config = Config{Recursive: true, Namespace: ns}
return &RunConfig{Config: config}
}

func LoadConfig(file string) (*TestConfig, error) {
func LoadConfig(file string) (*RunConfig, error) {
config := newWithDefaults()
data, err := ioutil.ReadFile(file)
if err != nil && os.IsNotExist(err) {
Expand Down
10 changes: 5 additions & 5 deletions pkg/cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func newCmdInstall(rootCmdOptions *RootCmdOptions) *cobra.Command {
cmd := cobra.Command{
PersistentPreRunE: impl.preRun,
Use: "install",
Short: "Install Yaks on a Kubernetes cluster",
Long: `Installs Yaks on a Kubernetes or OpenShift cluster.`,
Short: "Install YAKS on a Kubernetes cluster",
Long: `Installs YAKS on a Kubernetes or OpenShift cluster.`,
RunE: impl.install,
}

Expand Down Expand Up @@ -71,7 +71,7 @@ func (o *installCmdOptions) install(_ *cobra.Command, _ []string) error {
}

if o.clusterSetupOnly {
fmt.Println("Yaks cluster setup completed successfully")
fmt.Println("YAKS cluster setup completed successfully")
} else {
c, err := o.GetCmdClient()
if err != nil {
Expand All @@ -88,9 +88,9 @@ func (o *installCmdOptions) install(_ *cobra.Command, _ []string) error {
if err != nil {
return err
}
fmt.Println("Yaks setup completed successfully")
fmt.Println("YAKS setup completed successfully")
} else {
fmt.Println("Yaks operator installation skipped")
fmt.Println("YAKS operator installation skipped")
}
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ func newCmdOperator(rootCmdOptions *RootCmdOptions) *cobra.Command {
}
cmd := cobra.Command{
Use: "operator",
Short: "Run the Yaks operator",
Long: `Run the Yaks operator locally.`,
Short: "Run the YAKS operator",
Long: `Run the YAKS operator locally.`,
Run: impl.run,
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/spf13/cobra"
)

const yaksCommandLongDescription = `Yaks is Yet Another Kamel Subproject.
const yaksCommandLongDescription = `YAKS is Yet Another Kubernetes Service.
`

// RootCmdOptions --
Expand All @@ -43,7 +43,7 @@ func NewYaksCommand(ctx context.Context) (*cobra.Command, error) {
}
var cmd = cobra.Command{
Use: "yaks",
Short: "Yaks is a awesome client tool for running tests natively on Kubernetes",
Short: "YAKS is a awesome client tool for running tests natively on Kubernetes",
Long: yaksCommandLongDescription,
}

Expand Down
Loading

0 comments on commit d2c603a

Please sign in to comment.