Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
592c46c8
Commit
592c46c8
authored
Sep 28, 2017
by
Matt Bostock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests: Clarify what InsecureSkipVerify does
parent
0c31c7b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pkg/models/datasource_cache_test.go
+3
-3
No files found.
pkg/models/datasource_cache_test.go
View file @
592c46c8
...
...
@@ -49,7 +49,7 @@ func TestDataSourceCache(t *testing.T) {
transport
,
err
:=
ds
.
GetHttpTransport
()
So
(
err
,
ShouldBeNil
)
Convey
(
"Should
have no cert
"
,
func
()
{
Convey
(
"Should
disable TLS certificate verification
"
,
func
()
{
So
(
transport
.
TLSClientConfig
.
InsecureSkipVerify
,
ShouldEqual
,
true
)
})
...
...
@@ -69,7 +69,7 @@ func TestDataSourceCache(t *testing.T) {
transport
,
err
=
ds
.
GetHttpTransport
()
So
(
err
,
ShouldBeNil
)
Convey
(
"Should add cert"
,
func
()
{
Convey
(
"Should add cert
and enable TLS certificate verification
"
,
func
()
{
So
(
transport
.
TLSClientConfig
.
InsecureSkipVerify
,
ShouldEqual
,
false
)
So
(
len
(
transport
.
TLSClientConfig
.
Certificates
),
ShouldEqual
,
1
)
})
...
...
@@ -81,7 +81,7 @@ func TestDataSourceCache(t *testing.T) {
transport
,
err
=
ds
.
GetHttpTransport
()
So
(
err
,
ShouldBeNil
)
Convey
(
"Should remove cert"
,
func
()
{
Convey
(
"Should remove cert
and disable TLS certificate vertification
"
,
func
()
{
So
(
transport
.
TLSClientConfig
.
InsecureSkipVerify
,
ShouldEqual
,
true
)
So
(
len
(
transport
.
TLSClientConfig
.
Certificates
),
ShouldEqual
,
0
)
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment