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
283fc8e8
Commit
283fc8e8
authored
Jun 12, 2015
by
Abhi Shah
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9727 from satnam6502/es-logging
Make Elasticsearch logging test check for node failures
parents
b1bbf653
492d2297
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
es_cluster_logging.go
test/e2e/es_cluster_logging.go
+12
-0
No files found.
test/e2e/es_cluster_logging.go
View file @
283fc8e8
...
...
@@ -164,6 +164,18 @@ func ClusterLevelLoggingWithElasticsearch(f *Framework) {
if
nodeCount
==
0
{
Failf
(
"Failed to find any nodes"
)
}
Logf
(
"Found %d nodes."
,
len
(
nodes
.
Items
))
// Filter out unhealthy nodes.
// Previous tests may have cause failures of some nodes. Let's skip
// 'Not Ready' nodes, just in case (there is no need to fail the test).
filterNodes
(
nodes
,
func
(
node
api
.
Node
)
bool
{
return
isNodeReadySetAsExpected
(
&
node
,
true
)
})
if
len
(
nodes
.
Items
)
<
2
{
Failf
(
"Less than two nodes were found Ready."
)
}
Logf
(
"Found %d healthy nodes."
,
len
(
nodes
.
Items
))
// Create a unique root name for the resources in this test to permit
// parallel executions of this test.
...
...
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