-
Notifications
You must be signed in to change notification settings - Fork 33
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
ACL token passing integration test #272
Conversation
https://travis-ci.org/allegro/marathon-consul/builds/289041586#L2073 |
consul/consul_test_server.go
Outdated
|
||
server, err := testutil.NewTestServerConfig(func(c *testutil.TestServerConfig) { | ||
c.Datacenter = fmt.Sprint("dc-", time.Now().UnixNano()) | ||
c.Ports = &testutil.TestPortConfig{ |
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.
Can you extract this to a fucntion that returns *testutil.TestPortConfig
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.
done
consul/consul_test.go
Outdated
@@ -1057,3 +1057,51 @@ func Test_substituteEnvironment(t *testing.T) { | |||
}) | |||
} | |||
} | |||
|
|||
func TestACLTokenPassing(t *testing.T) { |
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.
Change name of this tests to define what happens here. e.g., TestIfTokenIsUsedToConnectToConsul
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.
Changed to TestTokenIsUsedToConnectToConsul
e2c348f
to
a755249
Compare
a755249
to
659a702
Compare
@chemicL Thanks a lot |
The ACL token passing has been carried over from the forked project, but it had no tests.
I added an integration test, which proves the functionality works as expected.