File: endpoint_test.go

package info (click to toggle)
golang-github-masterzen-winrm 0.0~git20160323.0752679-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 256 kB
  • ctags: 180
  • sloc: makefile: 34; sh: 14
file content (15 lines) | stat: -rw-r--r-- 378 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package winrm

import (
	. "gopkg.in/check.v1"
)

func (s *WinRMSuite) TestEndpointUrlHttp(c *C) {
	endpoint := &Endpoint{Host: "abc", Port: 123}
	c.Assert(endpoint.url(), Equals, "http://abc:123/wsman")
}

func (s *WinRMSuite) TestEndpointUrlHttps(c *C) {
	endpoint := &Endpoint{Host: "abc", Port: 123, HTTPS: true}
	c.Assert(endpoint.url(), Equals, "https://abc:123/wsman")
}