Implement set_resource function

This add a set_resource function to register resources build in
setUpClass.

Change-Id: Id8d0ba60c91c50b5bd36912dfe57b94563d9748a
Signed-off-by: Marc Koderer <m.koderer@telekom.de>