-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add basic smoketest functionality #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: siherrmann <25087590+siherrmann@users.noreply.github.com>
Signed-off-by: siherrmann <25087590+siherrmann@users.noreply.github.com>
Signed-off-by: siherrmann <25087590+siherrmann@users.noreply.github.com>
Signed-off-by: siherrmann <25087590+siherrmann@users.noreply.github.com>
Signed-off-by: siherrmann <25087590+siherrmann@users.noreply.github.com>
NautiluX
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couple of structural questions, besides that, I like it :)
| Name() string | ||
| } | ||
|
|
||
| type SmoketestCodesphereOpts struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a specific reason this is defined here, not with the Cmd?
| } | ||
|
|
||
| type SmoketestCodesphereOpts struct { | ||
| Client codesphere.Client |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm surprised this is at the opts struct not the cmd, since usually the opts represent the options given to the command. What's the reason for this choice?
| service: | ||
| steps: | ||
| - name: Run php server | ||
| command: php -S 0.0.0.0:3000 index.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait what? :D
|
|
||
| func (c *SmoketestCodesphereCmd) RunE(_ *cobra.Command, args []string) error { | ||
| // Initialize client if not set (for testing) | ||
| if c.Opts.Client == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when would this be not the case?
ClickUp: https://app.clickup.com/t/869au15v2