adaltas/node-nikita

ipa: tests are not passing in the configured environment

sergkudinov opened this issue · 0 comments

Some tests for @ipa.service are not passing anymore. The error is like:

Error: All nameservers failed to answer the query freeipa.nikita.local. IN A: Server 10.207.177.1 UDP port 53 answered SERVFAIL
      at Proxy.handler (src/service/index.coffee.md:60:17)

Possible cause

The cause might be related to environment installation in packages/ipa/env/ipa/start.coffee and changings in @lxd package. For example, after migration, to install freeipa on lxd centos/7 container it took changing permissions for /tmp folder with chmod -R 777 /tmp command, what wasn't a case before.

To reproduce

# Install a VM:
./packages/lxd/bin/cluster start

# Start lxd container
export NIKITA_HOME=/nikita
npx coffee ./packages/ipa/env/ipa/start.coffee

# Run tests
lxc exec freeipa --cwd /nikita/packages/ipa npx mocha test/**/*.coffee