From e4291bcbf2be967597437e1aa5909eb66da9d143 Mon Sep 17 00:00:00 2001 From: Stephane Bourque Date: Thu, 17 Dec 2020 09:45:48 -0800 Subject: [PATCH] Fixing API --- src/user_default.erl | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/user_default.erl b/src/user_default.erl index 3b39a6b..ad6a829 100644 --- a/src/user_default.erl +++ b/src/user_default.erl @@ -323,9 +323,6 @@ t1_key()-> import_ca("sim1","mypassword","tip2-cakey.pem","tip2-cacert.pem"), c1(). -t2_key()-> - import_ca("sim1","","sim1_key.pem","sim1_cert.pem"). - c1()-> Simulation = #simulation{ name = <<"sim1">>, ca = <<"sim1">>, @@ -337,3 +334,18 @@ c1()-> nodes = ['simnode1@debfarm1-node-c.arilia.com'] }, simengine:create(Simulation). +r1(X)-> + w(X), + push_simulation("sim1"), + timer:sleep(1000), + start_simulation("sim1"). + +w(X)-> + case length(nodes()) of + X -> ok; + _ -> timer:sleep(1000), w(X) + end. + + + +