Skip to content
Snippets Groups Projects
Commit bea82c8e authored by Rafaël Carré's avatar Rafaël Carré
Browse files

* #6560: fix configuration test

parent 80f00a9d
No related branches found
No related tags found
No related merge requests found
......@@ -254,7 +254,25 @@ void ConfigurationTest::testYamlEmitter()
zrtpmap.setKeyValue (notSuppWarningKey, &notSuppWarning);
accountmap.setKeyValue (credKey, &credentialmap);
credentialmap.setKeyValue (credentialCountKey, &count);
Conf::SequenceNode credentialseq (NULL);
accountmap.setKeyValue (credKey, &credentialseq);
Conf::MappingNode credmap1(NULL);
Conf::MappingNode credmap2(NULL);
Conf::ScalarNode user1("user");
Conf::ScalarNode pass1("pass");
Conf::ScalarNode realm1("*");
Conf::ScalarNode user2("john");
Conf::ScalarNode pass2("doe");
Conf::ScalarNode realm2("fbi");
credmap1.setKeyValue(USERNAME, &user1);
credmap1.setKeyValue(PASSWORD, &pass1);
credmap1.setKeyValue(REALM, &realm1);
credmap2.setKeyValue(USERNAME, &user2);
credmap2.setKeyValue(PASSWORD, &pass2);
credmap2.setKeyValue(REALM, &realm2);
credentialseq.addNode(&credmap1);
credentialseq.addNode(&credmap2);
accountmap.setKeyValue (tlsKey, &tlsmap);
tlsmap.setKeyValue (tlsPortKey, &tlsport);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment