Skip to content
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

Allow setting of Source IP for Addr Test #344

Merged
merged 6 commits into from
Dec 18, 2019
Merged

Allow setting of Source IP for Addr Test #344

merged 6 commits into from
Dec 18, 2019

Conversation

CBeerta
Copy link
Contributor

@CBeerta CBeerta commented Apr 12, 2018

This Change allows the Source IP with which the Addr test is run to be
set.

Copy link
Member

@aelsabbahy aelsabbahy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love the change, once the tests are updated/passing in CI I'll merge this.

resource/addr.go Outdated
Title string `json:"title,omitempty" yaml:"title,omitempty"`
Meta meta `json:"meta,omitempty" yaml:"meta,omitempty"`
Address string `json:"-" yaml:"-"`
LocalAddress string `json:"localaddress" yaml:"localaddress"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should have an "omitempty" for this.

This Change allows the Source IP with which the Addr test is run to be
set.
@CBeerta
Copy link
Contributor Author

CBeerta commented May 22, 2018

I had that fix locally already, never committed. And rebased to the master version.

Hope this is ok now, i actually really have no clue about programming go :P

@aelsabbahy aelsabbahy merged commit e5d28f3 into goss-org:master Dec 18, 2019
BenjaminHerbert pushed a commit to BenjaminHerbert/goss that referenced this pull request May 28, 2020
* Allow setting of Source IP for Addr Test

This Change allows the Source IP with which the Addr test is run to be
set.

* Gofmt the code and add tests

* More gofmt fixes

* Rename localaddress -> local-address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants