Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
1fe0a320
Commit
1fe0a320
authored
Mar 27, 2017
by
Bowei Du
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move DNS configmap tests to slow, serial suites
These tests take a long time due to the ConfigMap update interval and may briefly disrupt DNS resolution in the cluster.
parent
f14618a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dns_configmap.go
test/e2e/dns_configmap.go
+4
-4
No files found.
test/e2e/dns_configmap.go
View file @
1fe0a320
...
@@ -38,7 +38,7 @@ var _ = framework.KubeDescribe("DNS configMap federations", func() {
...
@@ -38,7 +38,7 @@ var _ = framework.KubeDescribe("DNS configMap federations", func() {
t
:=
&
dnsNameserverTest
{
dnsTestCommon
:
newDnsTestCommon
()}
t
:=
&
dnsNameserverTest
{
dnsTestCommon
:
newDnsTestCommon
()}
BeforeEach
(
func
()
{
t
.
c
=
t
.
f
.
ClientSet
})
BeforeEach
(
func
()
{
t
.
c
=
t
.
f
.
ClientSet
})
It
(
"should be able to change federation configuration"
,
func
()
{
It
(
"should be able to change federation configuration
[Slow][Serial]
"
,
func
()
{
t
.
run
()
t
.
run
()
})
})
})
})
...
@@ -169,12 +169,12 @@ func (t *dnsNameserverTest) run() {
...
@@ -169,12 +169,12 @@ func (t *dnsNameserverTest) run() {
"def.acme.local"
,
"def.acme.local"
,
func
(
actual
[]
string
)
bool
{
return
len
(
actual
)
==
1
&&
actual
[
0
]
==
"2.2.2.2"
},
func
(
actual
[]
string
)
bool
{
return
len
(
actual
)
==
1
&&
actual
[
0
]
==
"2.2.2.2"
},
"dnsmasq"
,
"dnsmasq"
,
wait
.
ForeverTestTimeout
)
more
ForeverTestTimeout
)
t
.
checkDNSRecordFrom
(
t
.
checkDNSRecordFrom
(
"widget.local"
,
"widget.local"
,
func
(
actual
[]
string
)
bool
{
return
len
(
actual
)
==
1
&&
actual
[
0
]
==
"3.3.3.3"
},
func
(
actual
[]
string
)
bool
{
return
len
(
actual
)
==
1
&&
actual
[
0
]
==
"3.3.3.3"
},
"dnsmasq"
,
"dnsmasq"
,
wait
.
ForeverTestTimeout
)
more
ForeverTestTimeout
)
t
.
c
.
Core
()
.
ConfigMaps
(
t
.
ns
)
.
Delete
(
t
.
name
,
nil
)
t
.
c
.
Core
()
.
ConfigMaps
(
t
.
ns
)
.
Delete
(
t
.
name
,
nil
)
// Wait for the deleted ConfigMap to take effect, otherwise the
// Wait for the deleted ConfigMap to take effect, otherwise the
...
@@ -190,7 +190,7 @@ var _ = framework.KubeDescribe("DNS configMap nameserver", func() {
...
@@ -190,7 +190,7 @@ var _ = framework.KubeDescribe("DNS configMap nameserver", func() {
t
:=
&
dnsNameserverTest
{
dnsTestCommon
:
newDnsTestCommon
()}
t
:=
&
dnsNameserverTest
{
dnsTestCommon
:
newDnsTestCommon
()}
BeforeEach
(
func
()
{
t
.
c
=
t
.
f
.
ClientSet
})
BeforeEach
(
func
()
{
t
.
c
=
t
.
f
.
ClientSet
})
It
(
"should be able to change stubDomain configuration"
,
func
()
{
It
(
"should be able to change stubDomain configuration
[Slow][Serial]
"
,
func
()
{
t
.
run
()
t
.
run
()
})
})
})
})
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