<sub_user_test.rb> Added logic to make tests work with remote-user auth

remote-user broker auth relies on the trusted header being set; this
change updates sub_user_test to detect if basic auth/remote-user auth
is enabled and sets the header when needed.
Merge pull request #3714 from dobbymoodge/fix_sub_user_test

Merged by openshift-bot