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
2d3f294e
Commit
2d3f294e
authored
Oct 13, 2016
by
Mik Vyatskov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ES cluster logging test
parent
4a223efd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
cluster_logging_es.go
test/e2e/cluster_logging_es.go
+4
-5
No files found.
test/e2e/cluster_logging_es.go
View file @
2d3f294e
...
@@ -218,17 +218,16 @@ func getMissingLinesCountElasticsearch(f *framework.Framework, expectedCount int
...
@@ -218,17 +218,16 @@ func getMissingLinesCountElasticsearch(f *framework.Framework, expectedCount int
return
0
,
fmt
.
Errorf
(
"Failed to get services proxy request: %v"
,
errProxy
)
return
0
,
fmt
.
Errorf
(
"Failed to get services proxy request: %v"
,
errProxy
)
}
}
// Ask Elasticsearch to return all the log lines that were tagged with the underscore
// Ask Elasticsearch to return all the log lines that were tagged with the
// version of the name. Ask for twice as many log lines as we expect to check for
// pod name. Ask for ten times as many log lines because duplication is possible.
// duplication bugs.
body
,
err
:=
proxyRequest
.
Namespace
(
api
.
NamespaceSystem
)
.
body
,
err
:=
proxyRequest
.
Namespace
(
api
.
NamespaceSystem
)
.
Name
(
"elasticsearch-logging"
)
.
Name
(
"elasticsearch-logging"
)
.
Suffix
(
"_search"
)
.
Suffix
(
"_search"
)
.
// TODO: Change filter to only match records from current test run
// TODO: Change filter to only match records from current test run
// after fluent-plugin-kubernetes_metadata_filter is enabled
// after fluent-plugin-kubernetes_metadata_filter is enabled
// and optimize current query
// and optimize current query
Param
(
"q"
,
"tag:*synthlogger*"
)
.
Param
(
"q"
,
fmt
.
Sprintf
(
"tag:*%s*"
,
synthLoggerPodName
)
)
.
Param
(
"size"
,
strconv
.
Itoa
(
expectedCount
))
.
Param
(
"size"
,
strconv
.
Itoa
(
expectedCount
*
10
))
.
DoRaw
()
DoRaw
()
if
err
!=
nil
{
if
err
!=
nil
{
return
0
,
fmt
.
Errorf
(
"Failed to make proxy call to elasticsearch-logging: %v"
,
err
)
return
0
,
fmt
.
Errorf
(
"Failed to make proxy call to elasticsearch-logging: %v"
,
err
)
...
...
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