File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 232
232
function get_test_user_token() {
233
233
local current_project; current_project=" $( oc project -q ) "
234
234
create_users ${1:- ${LOG_ADMIN_USER:- admin} } ${2:- ${LOG_ADMIN_PW:- admin} } ${3:- true}
235
- oc login --username=${1:- ${LOG_ADMIN_USER:- admin} } --password=${2:- ${LOG_ADMIN_PW:- admin} } > /dev/null
235
+ oc login --username=" ${1:- ${LOG_ADMIN_USER:- admin} } " --password=" ${2:- ${LOG_ADMIN_PW:- admin} } " > /dev/null
236
236
test_token=" $( oc whoami -t) "
237
237
test_name=" $( oc whoami) "
238
238
test_ip=" 127.0.0.1"
Original file line number Diff line number Diff line change @@ -156,14 +156,14 @@ function test_user_has_proper_access() {
156
156
exit 1
157
157
fi
158
158
159
- # verify normal user has no access to .operations
160
- os::log::info See if user $user is denied /.operations. *
159
+ # verify normal user has no access to infra
160
+ os::log::info See if user $user is denied /infra *
161
161
get_test_user_token $user $pw false
162
- nrecs=$( curl_es_pod_from_kibana_with_token $kpod $eshost " /.operations. */_count" $test_token -XPOST | \
162
+ nrecs=$( curl_es_pod_from_kibana_with_token $kpod $eshost " /infra */_count" $test_token -XPOST | \
163
163
get_count_from_json )
164
164
if ! os::cmd::expect_success " test $nrecs = 0" ; then
165
- os::log::error $LOG_NORMAL_USER has improper access to .operations. * indices
166
- curl_es_pod_from_kibana_with_token $kpod $eshost " /.operations. */_count" $test_token -XPOST | python -mjson.tool
165
+ os::log::error $LOG_NORMAL_USER has improper access to infra * indices
166
+ curl_es_pod_from_kibana_with_token $kpod $eshost " /infra */_count" $test_token -XPOST | python -mjson.tool
167
167
exit 1
168
168
fi
169
169
}
You can’t perform that action at this time.
0 commit comments