| Michal Kobus | f611358 | 2019-09-09 15:58:21 +0200 | [diff] [blame] | 1 | package testing |
| 2 | |||||
| 3 | import ( | ||||
| 4 | "testing" | ||||
| 5 | |||||
| 6 | "gerrit.mcp.mirantis.net/debian/gophercloud.git/openstack/baremetal/noauth" | ||||
| 7 | th "gerrit.mcp.mirantis.net/debian/gophercloud.git/testhelper" | ||||
| 8 | ) | ||||
| 9 | |||||
| 10 | func TestNoAuth(t *testing.T) { | ||||
| 11 | noauthClient, err := noauth.NewBareMetalNoAuth(noauth.EndpointOpts{ | ||||
| 12 | IronicEndpoint: "http://ironic:6385/v1", | ||||
| 13 | }) | ||||
| 14 | th.AssertNoErr(t, err) | ||||
| 15 | th.AssertEquals(t, "", noauthClient.TokenID) | ||||
| 16 | } | ||||