Commit 25df307
Refactor tests for nodes collector
- Drop extra test for authenticated requests to elasticsearch. Auth is common across all collectors, so it doesn't make sense to have specific tests for an individual collector.
- Add missing descriptions
- Drop tests for minor versions besides the most recent. The output is very large for this collector, and there is little value in testing every single minor version.
- Update tests to test the output of the metrics
- Refactor the node roles metric to have the role be dynamic, and to export 0 values for roles that are missing.
Signed-off-by: Joe Adams <github@joeadams.io>1 parent 075fde1 commit 25df307
File tree
7 files changed
+1629
-169
lines changed- collector
- fixtures/nodestats
7 files changed
+1629
-169
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
93 | 80 | | |
94 | 81 | | |
95 | 82 | | |
| |||
1859 | 1846 | | |
1860 | 1847 | | |
1861 | 1848 | | |
| 1849 | + | |
| 1850 | + | |
1862 | 1851 | | |
1863 | 1852 | | |
1864 | 1853 | | |
1865 | 1854 | | |
1866 | 1855 | | |
1867 | 1856 | | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
1868 | 1863 | | |
1869 | 1864 | | |
1870 | 1865 | | |
| |||
1948 | 1943 | | |
1949 | 1944 | | |
1950 | 1945 | | |
| 1946 | + | |
1951 | 1947 | | |
1952 | | - | |
1953 | | - | |
1954 | | - | |
1955 | | - | |
1956 | | - | |
1957 | | - | |
1958 | | - | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
1959 | 1956 | | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
1960 | 1964 | | |
1961 | 1965 | | |
1962 | 1966 | | |
| |||
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
0 commit comments