Skip to content

Commit

Permalink
disabled all tests except first two, improved developer documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
silkroadnomad committed Feb 4, 2019
1 parent 189468f commit 8686af8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,3 +350,12 @@ The name id is a 256-bit, ECDSA valid, number represanted as a 32 byte (64 chara
##### sequence-diagram

![Alt secquence diagram](doc/uml/sequence.svg)

## Developer Section
##### How to start developing
1. Install Meteor from meteor.com
2. Checkout this repository ``git clone https://github.com/Doichain/dapp.git; cd dapp;meteor npm install``
3. Start development environment with Docker Compose ``docker-compose -f -f docker-compose-test-regtest.yml up``
4. Start Bobs meteor ``MONGO_URL=mongodb://localhost:28017/bob meteor run --settings settings-bob.json --port 4000``
5. Start Alice meteor durring development ``MONGO_URL=mongodb://localhost:28017/alice meteor run --settings settings-alice.json --port 3000``
6. Or run tests on Alice ``meteor npm run test-alice``
4 changes: 2 additions & 2 deletions private/version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"timestamp": "04-02-2019 11:00",
"timestamp": "04-02-2019 12:10",
"version": "v0.0.7.7",
"commit": "255ab499782f8df24d2d92ffaea3795bd0b2dd58"
"commit": "189468fc46566e96e26393693fe5b5961f03232a"
}
18 changes: 8 additions & 10 deletions server/test/1-basic-doi-test.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import {

import {deleteOptInsFromAliceAndBob} from "./test-api/test-api-on-node";



let templateUrlA="http://172.20.0.8:4000/templates/emails/doichain-anmeldung-final-DE.html";
let templateUrlB="http://172.20.0.8:4000/templates/emails/doichain-anmeldung-final-EN.html";
if(!global.inside_docker){
Expand Down Expand Up @@ -56,7 +54,7 @@ if(Meteor.isAppTest) {
done();
});

it('should create two more users', function (done) {
xit('should create two more users', function (done) {
resetUsers();
const logAdmin = login(global.dappUrlAlice, global.dAppLogin, false);
let userA = createUser(global.dappUrlAlice, logAdmin, "alice-a", templateUrlA, true);
Expand All @@ -67,7 +65,7 @@ if(Meteor.isAppTest) {
done();
});

it('should test if Doichain workflow is using different templates for different users', function (done) {
xit('should test if Doichain workflow is using different templates for different users', function (done) {

resetUsers();
const recipient_mail = "bob@ci-doichain.org"; //
Expand All @@ -90,7 +88,7 @@ if(Meteor.isAppTest) {
done();
});

it('should test if users can export OptIns ', function (done) {
xit('should test if users can export OptIns ', function (done) {
resetUsers();

const logAdmin = login(global.dappUrlAlice, global.dAppLogin, false);
Expand All @@ -116,7 +114,7 @@ if(Meteor.isAppTest) {
done();
});

it('should test if admin can update user profiles', function () {
xit('should test if admin can update user profiles', function () {
resetUsers();
let logAdmin = login(global.dappUrlAlice, global.dAppLogin, true);
const userUp = createUser(global.dappUrlAlice, logAdmin, "updateUser", templateUrlA, true);
Expand All @@ -126,7 +124,7 @@ if(Meteor.isAppTest) {
chai.expect(changedData).not.undefined;
});

it('should test if user can update own profile', function () {
xit('should test if user can update own profile', function () {
resetUsers();
let logAdmin = login(global.dappUrlAlice, global.dAppLogin, true);
const userUp = createUser(global.dappUrlAlice, logAdmin, "updateUser", templateUrlA, true);
Expand All @@ -137,15 +135,15 @@ if(Meteor.isAppTest) {
chai.expect(changedData).not.undefined;
});

it('should test if coDoi works', function () {
xit('should test if coDoi works', function () {
const coDoiList = ["alice1@doichain-ci.com", "alice2@doichain-ci.com", "alice3@doichain-ci.com"];
const recipient_mail = "bob@ci-doichain.org";
const sender_mail = coDoiList;
let logAdmin = login(global.dappUrlAlice, global.dAppLogin, true);
requestConfirmVerifyBasicDoi(global.node_url_alice, global.rpcAuthAlice, global.dappUrlAlice, logAdmin, global.dappUrlBob, recipient_mail, sender_mail, {'city': 'Ekaterinburg'}, "bob@ci-doichain.org", "bob", true);
});

it('should find updated Data in email', function (done) {
xit('should find updated Data in email', function (done) {
const recipient_mail = "bob@ci-doichain.org"; //please use this as standard to not confuse people!
const sender_mail = "alice-update@ci-doichain.org";
const adLog = login(global.dappUrlAlice, global.dAppLogin, false);
Expand All @@ -155,7 +153,7 @@ if(Meteor.isAppTest) {
done();
});

it('should redirect if confirmation-link is clicked again',function(){
xit('should redirect if confirmation-link is clicked again',function(){
for (let index = 0; index < 3; index++) {
const recipient_mail = "bob@ci-doichain.org"; //please use this as standard to not confuse people!
const sender_mail = "alice_"+index+"@ci-doichain.org";
Expand Down

0 comments on commit 8686af8

Please sign in to comment.