Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .mockery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ packages:
config:
all: true
interfaces:
github.com/codesphere-cloud/oms/pkg/codesphere:
config:
all: true
interfaces:
24 changes: 15 additions & 9 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ License: MIT
License URL: https://github.com/clipperhouse/uax29/blob/v2.3.0/LICENSE

----------
Module: github.com/codesphere-cloud/cs-go/pkg/io
Version: v0.14.1
Module: github.com/codesphere-cloud/cs-go
Version: v0.15.0
License: Apache-2.0
License URL: https://github.com/codesphere-cloud/cs-go/blob/v0.14.1/LICENSE
License URL: https://github.com/codesphere-cloud/cs-go/blob/v0.15.0/LICENSE

----------
Module: github.com/codesphere-cloud/oms/internal/tmpl
Expand Down Expand Up @@ -77,9 +77,9 @@ License URL: https://github.com/inconshreveable/go-update/blob/8152e7eb6ccf/inte

----------
Module: github.com/jedib0t/go-pretty/v6
Version: v6.7.5
Version: v6.7.7
License: MIT
License URL: https://github.com/jedib0t/go-pretty/blob/v6.7.5/LICENSE
License URL: https://github.com/jedib0t/go-pretty/blob/v6.7.7/LICENSE

----------
Module: github.com/mattn/go-runewidth
Expand Down Expand Up @@ -155,9 +155,9 @@ License URL: https://github.com/yaml/go-yaml/blob/v3.0.4/LICENSE

----------
Module: golang.org/x/crypto
Version: v0.45.0
Version: v0.46.0
License: BSD-3-Clause
License URL: https://cs.opensource.google/go/x/crypto/+/v0.45.0:LICENSE
License URL: https://cs.opensource.google/go/x/crypto/+/v0.46.0:LICENSE

----------
Module: golang.org/x/oauth2
Expand All @@ -167,9 +167,15 @@ License URL: https://cs.opensource.google/go/x/oauth2/+/v0.33.0:LICENSE

----------
Module: golang.org/x/text
Version: v0.31.0
Version: v0.32.0
License: BSD-3-Clause
License URL: https://cs.opensource.google/go/x/text/+/v0.31.0:LICENSE
License URL: https://cs.opensource.google/go/x/text/+/v0.32.0:LICENSE

----------
Module: gopkg.in/validator.v2
Version: v2.0.1
License: Apache-2.0
License URL: https://github.com/go-validator/validator/blob/v2.0.1/LICENSE

----------
Module: gopkg.in/yaml.v3
Expand Down
3 changes: 3 additions & 0 deletions cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ func GetRootCmd() *cobra.Command {
AddRegisterCmd(rootCmd, opts)
AddRevokeCmd(rootCmd, opts)

// Smoke test commands
AddSmoketestCmd(rootCmd, opts)

return rootCmd
}

Expand Down
27 changes: 27 additions & 0 deletions cli/cmd/smoketest.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright (c) Codesphere Inc.
// SPDX-License-Identifier: Apache-2.0

package cmd

import (
"github.com/codesphere-cloud/cs-go/pkg/io"
"github.com/spf13/cobra"
)

// SmoketestCmd represents the smoketest command
type SmoketestCmd struct {
cmd *cobra.Command
}

func AddSmoketestCmd(rootCmd *cobra.Command, opts *GlobalOptions) {
smoketest := SmoketestCmd{
cmd: &cobra.Command{
Use: "smoketest",
Short: "Run smoke tests for Codesphere components",
Long: io.Long(`Run automated smoke tests for Codesphere installations to verify functionality.`),
},
}
rootCmd.AddCommand(smoketest.cmd)

AddSmoketestCodesphereCmd(smoketest.cmd, opts)
}
Loading