Add resouce config and test for xray.