-
Notifications
You must be signed in to change notification settings - Fork 20
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
start of update tests #60
Conversation
Signed-off-by: vagrant <[email protected]>
Signed-off-by: vagrant <[email protected]>
Signed-off-by: vagrant <[email protected]>
Signed-off-by: vagrant <[email protected]>
Signed-off-by: vagrant <[email protected]>
Signed-off-by: vagrant <[email protected]>
@wenlock This branch is good to be merged. This just switches all the current tests to use the new framework of calling a specific chunk of data instead of it just using dev |
thanks @mbfrahry but did you notice your sign-off is coming from your vagrant user account? Will try this out, any chance you can fix the sign off? |
if os.Getenv("ONEVIEW_TEST_ENV") != "" { | ||
ot.Env = os.Getenv("ONEVIEW_TEST_ENV") | ||
return | ||
} | ||
ot.Env = "dev" | ||
ot.Env = env |
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.
Trying to understand why we want this. Could you explain the challenge your facing with not letting environment represent a default globally for all test here and what use case we're solving by allowing every test case to define their own default environment value? My thoughts on environment was that we could add progressively complex testing for things like a test and production environment in the future, but in this scenario, I'm thinking we might just be moving a default that should be located here to all other test case calls.... wanted to get your take on this.
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.
So at the time, it seemed like this was server_profile test specific. So when I was adding new tests I added tests specific to other things. It keeps the test chunks small and specific to the tests we are running. I might have misunderstood this though. My test data looks like
{
"name": "dev"
//initial test data
},
{
"name": "test_ethernet_network",
// data for ethernet
}
.
.
.
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.
OK, that makes sense... so instead of environments, we are really saying we can purpose this as a way to select test specific to a particular unit case where we can start separating.... I think your way might actually be cleaner, it's to bad go doesn't support defaults. Then we wouldn't need to pass arguments like "dev" every time. OK, I'll accept that as a good way to go +1.
I'm going to merge my other PR for the make process, this should allow you to rebase and try this build again.
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.
Perfect!
@mbfrahry checkout pull #62 , This should address the issues with building locally. Also, if we probably need to merge this one ahead of the change your working on here because it forced us to change the environment settings for travis ci so that USE_CONTAINER=false, and remove GH_REPO, GH_USER values. Once we merge #62 then we'll have to rebase this change, but I'm hoping you can answer my other questions on this review. |
@wenlock Looking at all the comments. |
Signed-off-by: mbfrahry <[email protected]>
Signed-off-by: mbfrahry <[email protected]>
I'm good to merge #62 if you are |
@@ -1,30 +1,17 @@ | |||
# HPE OneView golang bindings | |||
|
|||
[](https://travis-ci.org/HewlettPackard/oneview-golang) |
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.
why remove the build status?
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.
Oops, I was just trying to fix the signature without making drastic changes. I pulled this out of my readme so I wouldn't be getting builds passing or failing from your repo onto mine. I'll fix this.
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.
Fixed
Signed-off-by: mbfrahry <[email protected]>
Signed-off-by: mbfrahry [email protected]