Commit 55ae512
authored
More realistic test scenario in Authc service test (#118519)
This changes `AuthenticationServiceTests.testInvalidToken` to
configure the security (tokens) index correctly.
Previously `defensiveCopy()` would return `null` which would cause
`getTokenDocById` to throw an exception, which `decodeToken` would
catch and ignore.
But that is not a realistic scenario, and is testing by side-effect.1 parent c1569b2 commit 55ae512
File tree
1 file changed
+32
-0
lines changed- x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc
1 file changed
+32
-0
lines changedLines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
1955 | 1956 | | |
1956 | 1957 | | |
1957 | 1958 | | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
1958 | 1990 | | |
1959 | 1991 | | |
1960 | 1992 | | |
| |||
0 commit comments