Fixed tests for updated database dump

This commit is contained in:
Lukas Metzger 2018-03-30 10:02:25 +02:00
parent 2ef6cdfa4b
commit 73a881a408
3 changed files with 12 additions and 4 deletions

View file

@ -251,7 +251,7 @@ test.run(async function () {
id: 1, id: 1,
name: 'example.com', name: 'example.com',
type: 'MASTER', type: 'MASTER',
records: 1 records: 3
}, 'Domain 3 data mismatch'); }, 'Domain 3 data mismatch');
}); });
}); });

View file

@ -102,7 +102,7 @@ test.run(async function () {
id: 3, id: 3,
name: 'foo.de', name: 'foo.de',
type: 'NATIVE', type: 'NATIVE',
records: 0 records: 1
} }
], 'Result fail for ' + res.config.url); ], 'Result fail for ' + res.config.url);
}); });

View file

@ -14,6 +14,14 @@ then
echo "Backend lint failed" echo "Backend lint failed"
exit 2 exit 2
fi fi
cd .. cd ../..
exit 0 cd backend/test
if ! ./test.sh all
then
echo "Backend test failed"
exit 3
fi
cd ../..
exit 0