telefonicaid / fiware-orion

Context Broker and CEF building block for context data management, providing NGSI interfaces.
https://github.com/telefonicaid/fiware-orion/blob/master/doc/manuals/orion-api.md
GNU Affero General Public License v3.0
210 stars 265 forks source link

contexBroker-test fix: orion owner for directories #402

Open fgalan opened 10 years ago

fgalan commented 10 years ago

Documentation at https://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/Publish/Subscribe_Broker_-_Orion_Context_Broker_-_Unit_Testing_Plan#Orion_0.14.0_and_newer tells:

su orion -c "tests/testHarness.sh --no-duration tests/cases"

This is not going to work with the current contextBroker-test RPM as, the directory belongs to root and the test suite needs to create .out, .sh, etc. files along with the .test.

# ls -ld /usr/share/contextBroker/
drwxr-xr-x. 3 root root 4096 jun  3 13:13 /usr/share/contextBroker/

The .spec should be adapted to make orion user be the owner of that directories.

kzangeli commented 10 years ago

What if we send the output files to some other directory, created under /tmp? Just a suggestion ...

fgalan commented 10 years ago

@kzangeli it could make debugging more complex (currently, when something fails and you need to research on this, all the .out, .sh, etc. files are along to the originationg .test, which is very helpful).

kzangeli commented 10 years ago

Yeah, it is true; it gets a bit easier with everything "together"