=== Test case: mongooseimctl_SUITE:dump_and_load/1 (click for source code)

=== Config value:

    [{watchdog,<0.30010.0>},
     {ctl_auth_mods,[ejabberd_auth_internal,ejabberd_auth_anonymous,
                     ejabberd_auth_internal]},
     {roster_template,"/home/circleci/project/big_tests/tests/mongooseimctl_SUITE_data/roster.template"},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/mongooseimctl_SUITE_data"},
     {preset,"internal_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.mongooseimctl_SUITE.logs/run.2022-01-27_15.30.58/mongooseimctl_suite.dump_and_load.html"},
     {tc_group_properties,[{name,basic},sequence]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/mongooseimctl_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.mongooseimctl_SUITE.logs/run.2022-01-27_15.30.58/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {mike,[{username,<<"mike">>},
                            {server,<<"localhost">>},
                            {password,<<"nicniema">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"localhost">>},
                            {password,<<"makrowe;p">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@34a9b6d2516c.2022-01-27_15.25.07"

=== Started at 2022-01-27 15:32:16


*** CT 2022-01-27 15:32:16.779 *** View log from node mongooseim@localhost when started mongooseim@localhost_4346.html
*** CT 2022-01-27 15:32:16.779 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2320.html

*** User 2022-01-27 15:32:17.128 ***
Execute /home/circleci/project/_build/mim1/rel/mongooseim/bin/mongooseimctl  dump dump.bup
Result []
ExitStatus 0

*** User 2022-01-27 15:32:17.128 ***
DumpReturns []

*** User 2022-01-27 15:32:17.131 ***
DumpData [{tables,
              [{last_activity,
                   [{record_name,last_activity},
                    {attributes,[us,timestamp,status]}]},
               {private_storage,
                   [{record_name,private_storage},{attributes,[usns,xml]}]},
               {pubsub_index,
                   [{record_name,pubsub_index},
                    {attributes,[index,last,free]}]},
               {pubsub_subnode,
                   [{record_name,pubsub_subnode},
                    {attributes,[nodeid,subnode]}]},
               {pubsub_subscription,
                   [{record_name,pubsub_subscription},
                    {attributes,[subid,options]}]},
               {pubsub_node,
                   [{record_name,pubsub_node},
                    {attributes,[nodeid,id,parents,type,owners,options]}]},
               {pubsub_item,
                   [{record_name,pubsub_item},
                    {attributes,
                        [itemid,creation,modification,publisher,payload]}]},
               {pubsub_state,
                   [{record_name,pubsub_state},
                    {attributes,[stateid,items,affiliation,subscriptions]}]},
               {offline_msg,
                   [{record_name,offline_msg},
                    {attributes,
                        [us,timestamp,expire,from,to,packet,
                         permanent_fields]}]},
               {muc_registered,
                   [{record_name,muc_registered},{attributes,[us_host,nick]}]},
               {muc_room,
                   [{record_name,muc_room},{attributes,[name_host,opts]}]},
               {caps_features,
                   [{record_name,caps_features},
                    {attributes,[node_pair,features]}]},
               {roster,
                   [{record_name,roster},
                    {attributes,
                        [usj,us,jid,name,subscription,ask,groups,askmessage,
                         xs]}]},
               {vcard,[{record_name,vcard},{attributes,[us,vcard]}]},
               {passwd,[{record_name,passwd},{attributes,[us,password]}]},
               {roster_version,
                   [{record_name,roster_version},{attributes,[us,version]}]},
               {vcard_search,
                   [{record_name,vcard_search},
                    {attributes,
                        [us,user,luser,fn,lfn,family,lfamily,given,lgiven,
                         middle,lmiddle,nickname,lnickname,bday,lbday,ctry,
                         lctry,locality,llocality,email,lemail,orgname,
                         lorgname,orgunit,lorgunit]}]},
               {privacy,
                   [{record_name,privacy},{attributes,[us,default,lists]}]}]},
          {last_activity,{<<"alice">>,<<"localhost">>},1643297532,<<>>},
          {last_activity,{<<"bob">>,<<"localhost">>},1643297532,<<>>},
          {private_storage,
              {<<"alice">>,<<"localhost">>,<<"inny">>},
              {xmlel,<<"secretinfo">>,
                  [{<<"xmlns">>,<<"inny">>}],
                  [{xmlcdata,<<"2">>}]}},
          {private_storage,
              {<<"alice">>,<<"localhost">>,<<"nejmspejs">>},
              {xmlel,<<"secretinfo">>,
                  [{<<"xmlns">>,<<"nejmspejs">>}],
                  [{xmlcdata,<<"1">>}]}},
          {pubsub_index,node,21,[]},
          {pubsub_node,
              {<<"pubsub.localhost">>,<<"node_3_PUI+ZiNC">>},
              20,[],<<"flat">>,
              [{<<"bob_remove_pubsub_all_data_660">>,<<"localhost">>,<<>>}],
              [{deliver_payloads,true},
               {notify_config,false},
               {notify_delete,false},
               {notify_retract,false},
               {purge_offline,false},
               {persist_items,true},
               {max_items,10},
               {subscribe,true},
               {access_model,open},
               {roster_groups_allowed,[]},
               {publish_model,publishers},
               {notification_type,headline},
               {max_payload_size,60000},
               {send_last_published_item,never},
               {deliver_notifications,true},
               {presence_based_delivery,false}]},
          {pubsub_node,
              {<<"pubsub.localhost">>,<<"node_2_r0GBC5OV">>},
              2,[],<<"flat">>,
              [{<<"alice_retrieve_pubsub_payloads_638">>,<<"localhost">>,
                <<>>}],
              [{deliver_payloads,true},
               {notify_config,false},
               {notify_delete,false},
               {notify_retract,false},
               {purge_offline,false},
               {persist_items,true},
               {max_items,10},
               {subscribe,true},
               {access_model,open},
               {roster_groups_allowed,[]},
               {publish_model,publishers},
               {notification_type,headline},
               {max_payload_size,60000},
               {send_last_published_item,never},
               {deliver_notifications,true},
               {presence_based_delivery,false}]},
          {pubsub_node,
              {<<"pubsub.localhost">>,<<"princely_musings_EVuBoT6mG6Q=">>},
              12,[],<<"flat">>,
              [{<<"alice_remove_pubsub_subscriptions_654">>,<<"localhost">>,
                <<>>}],
              [{deliver_payloads,true},
               {notify_config,false},
               {notify_delete,false},
               {notify_retract,false},
               {purge_offline,false},
               {persist_items,true},
               {max_items,10},
               {subscribe,true},
               {access_model,open},
               {roster_groups_allowed,[]},
               {publish_model,publishers},
               {notification_type,headline},
               {max_payload_size,60000},
               {send_last_published_item,never},
               {deliver_notifications,true},
               {presence_based_delivery,false}]},
          {pubsub_node,
              {<<"pubsub.localhost">>,<<"node_1_8J3ZWAqW">>},
              1,[],<<"flat">>,
              [{<<"alice_retrieve_pubsub_payloads_638">>,<<"localhost">>,
                <<>>}],
              [{deliver_payloads,true},
               {notify_config,false},
               {notify_delete,false},
               {notify_retract,false},
               {purge_offline,false},
               {persist_items,true},
               {max_items,10},
               {subscribe,true},
               {access_model,open},
               {roster_groups_allowed,[]},
               {publish_model,publishers},
               {notification_type,headline},
               {max_payload_size,60000},
               {send_last_published_item,never},
               {deliver_notifications,true},
               {presence_based_delivery,false}]},
          {pubsub_node,
              {<<"pubsub.localhost">>,<<"node_1_EX8skU+M">>},
              13,[],<<"flat">>,
              [{<<"alice_remove_pubsub_dont_remove_node_when_only_publisher_656">>,
                <<"localhost">>,<<>>}],
              [{deliver_payloads,true},
               {notify_config,false},
               {notify_delete,false},
               {notify_retract,false},
               {purge_offline,false},
               {persist_items,true},
               {max_items,10},
               {subscribe,true},
               {access_model,open},
               {roster_groups_allowed,[]},
               {publish_model,publishers},
               {notification_type,headline},
               {max_payload_size,60000},
               {send_last_published_item,never},
               {deliver_notifications,true},
               {presence_based_delivery,false}]},
          {pubsub_node,
              {<<"pubsub.localhost">>,<<"node_1_Fqp+RcYN">>},
              17,[],<<"flat">>,
              [{<<"alice_remove_pubsub_all_data_660">>,<<"localhost">>,<<>>}],
              [{deliver_payloads,true},
               {notify_config,false},
               {notify_delete,false},
               {notify_retract,false},
               {purge_offline,false},
               {persist_items,true},
               {max_items,10},
               {subscribe,true},
               {access_model,open},
               {roster_groups_allowed,[]},
               {publish_model,publishers},
               {notification_type,headline},
               {max_payload_size,60000},
               {send_last_published_item,never},
               {deliver_notifications,true},
               {presence_based_delivery,false}]},
          {pubsub_node,
              {<<"pubsub.localhost">>,<<"node_2_dvO3QdMb">>},
              18,[],<<"flat">>,
              [{<<"alice_remove_pubsub_all_data_660">>,<<"localhost">>,<<>>}],
              [{deliver_payloads,true},
               {notify_config,false},
               {notify_delete,false},
               {notify_retract,false},
               {purge_offline,false},
               {persist_items,true},
               {max_items,10},
               {subscribe,true},
               {access_model,open},
               {roster_groups_allowed,[]},
               {publish_model,publishers},
               {notification_type,headline},
               {max_payload_size,60000},
               {send_last_published_item,never},
               {deliver_notifications,true},
               {presence_based_delivery,false}]},
          {pubsub_node,
              {<<"pubsub.localhost">>,<<"node_1_Ncrvisgh">>},
              14,[],<<"flat">>,
              [{<<"alice_remove_pubsub_dont_remove_flat_pubsub_node_657">>,
                <<"localhost">>,<<>>}],
              [{deliver_payloads,true},
               {notify_config,false},
               {notify_delete,false},
               {notify_retract,false},
               {purge_offline,false},
               {persist_items,true},
               {max_items,10},
               {subscribe,true},
               {access_model,open},
               {roster_groups_allowed,[]},
               {publish_model,publishers},
               {notification_type,headline},
               {max_payload_size,60000},
               {send_last_published_item,never},
               {deliver_notifications,true},
               {presence_based_delivery,false}]},
          {pubsub_item,
              {<<"Item1">>,1},
              {1643297239671721,
               {<<"alice_retrieve_pubsub_payloads_638">>,<<"localhost">>,
                <<>>}},
              {1643297239671721,
               {<<"alice_retrieve_pubsub_payloads_638">>,<<"localhost">>,
                <<"res1">>}},
              undefined,
              [{xmlel,<<"entry">>,
                   [{<<"xmlns">>,<<"http://www.w3.org/2005/Atom">>}],
                   [{xmlcdata,<<"Item1Data">>}]}]},
          {pubsub_item,
              {<<"Item2">>,1},
              {1643297239673135,
               {<<"alice_retrieve_pubsub_payloads_638">>,<<"localhost">>,
                <<>>}},
              {1643297239673135,
               {<<"alice_retrieve_pubsub_payloads_638">>,<<"localhost">>,
                <<"res1">>}},
              undefined,
              [{xmlel,<<"entry">>,
                   [{<<"xmlns">>,<<"http://www.w3.org/2005/Atom">>}],
                   [{xmlcdata,<<"Item2Data">>}]}]},
          {pubsub_item,
              {<<"Item3">>,1},
              {1643297239673834,
               {<<"alice_retrieve_pubsub_payloads_638">>,<<"localhost">>,
                <<>>}},
              {1643297239673834,
               {<<"alice_retrieve_pubsub_payloads_638">>,<<"localhost">>,
                <<"res1">>}},
              undefined,
              [{xmlel,<<"entry">>,
                   [{<<"xmlns">>,<<"http://www.w3.org/2005/Atom">>}],
                   [{xmlcdata,<<"Item3Data">>}]}]},
          {pubsub_item,
              {<<"OtherItem">>,2},
              {1643297239774038,
               {<<"alice_retrieve_pubsub_payloads_638">>,<<"localhost">>,
                <<>>}},
              {1643297239774038,
               {<<"alice_retrieve_pubsub_payloads_638">>,<<"localhost">>,
                <<"res1">>}},
              undefined,
              [{xmlel,<<"entry">>,
                   [{<<"xmlns">>,<<"http://www.w3.org/2005/Atom">>}],
                   [{xmlcdata,<<"OtherItemData">>}]}]},
          {pubsub_item,
              {<<"Bob publishes to Node3, so Alice receives it">>,20},
              {1643297257277312,
               {<<"bob_remove_pubsub_all_data_660">>,<<"localhost">>,<<>>}},
              {1643297257277312,
               {<<"bob_remove_pubsub_all_data_660">>,<<"localhost">>,
                <<"res1">>}},
              undefined,
              [{xmlel,<<"entry">>,
                   [{<<"xmlns">>,<<"http://www.w3.org/2005/Atom">>}],
                   [{xmlcdata,<<"Item4Data">>}]}]},
          {pubsub_item,
              {<<"Alice published to Node2, so Bob receives it">>,18},
              {1643297257273537,
               {<<"alice_remove_pubsub_all_data_660">>,<<"localhost">>,<<>>}},
              {1643297257273537,
               {<<"alice_remove_pubsub_all_data_660">>,<<"localhost">>,
                <<"res1">>}},
              undefined,
              [{xmlel,<<"entry">>,
                   [{<<"xmlns">>,<<"http://www.w3.org/2005/Atom">>}],
                   [{xmlcdata,<<"Item2Data">>}]}]},
          {pubsub_item,
              {<<"Alice publishes to Node1, but nobody is subscribed">>,17},
              {1643297256867587,
               {<<"alice_remove_pubsub_all_data_660">>,<<"localhost">>,<<>>}},
              {1643297256867587,
               {<<"alice_remove_pubsub_all_data_660">>,<<"localhost">>,
                <<"res1">>}},
              undefined,
              [{xmlel,<<"entry">>,
                   [{<<"xmlns">>,<<"http://www.w3.org/2005/Atom">>}],
                   [{xmlcdata,<<"Item1Data">>}]}]},
          {pubsub_item,
              {<<"Bob publishes to Node1, but nobody is subscribed">>,17},
              {1643297257275513,
               {<<"bob_remove_pubsub_all_data_660">>,<<"localhost">>,<<>>}},
              {1643297257275513,
               {<<"bob_remove_pubsub_all_data_660">>,<<"localhost">>,
                <<"res1">>}},
              undefined,
              [{xmlel,<<"entry">>,
                   [{<<"xmlns">>,<<"http://www.w3.org/2005/Atom">>}],
                   [{xmlcdata,<<"Item3Data">>}]}]},
          {muc_room,
              {<<"muc_publish">>,<<"muc.localhost">>},
              [{title,<<>>},
               {description,<<>>},
               {allow_change_subj,true},
               {allow_query_users,true},
               {allow_private_messages,true},
               {allow_visitor_status,true},
               {allow_visitor_nickchange,true},
               {public,true},
               {public_list,true},
               {persistent,true},
               {moderated,true},
               {members_by_default,true},
               {members_only,false},
               {allow_user_invites,false},
               {allow_multiple_sessions,false},
               {password_protected,false},
               {password,<<>>},
               {anonymous,false},
               {logging,false},
               {max_users,200},
               {maygetmemberlist,[]},
               {affiliations,
                   [{{<<"alice_unnamed_744">>,<<"localhost">>,<<>>},owner}]},
               {subject,<<>>},
               {subject_author,<<>>}]},
          {roster,
              {<<"unicoder-888">>,<<"localhost">>,
               {<<"alice">>,<<"localhost">>,<<>>}},
              {<<"unicoder-888">>,<<"localhost">>},
              {<<"alice">>,<<"localhost">>,<<>>},
              <<"Alice">>,both,none,
              [<<"Group">>],
              <<>>,[]},
          {roster,
              {<<"unicoder-888">>,<<"localhost">>,
               {<<"bob">>,<<"localhost">>,<<>>}},
              {<<"unicoder-888">>,<<"localhost">>},
              {<<"bob">>,<<"localhost">>,<<>>},
              <<"Bob">>,both,none,
              [<<"Group">>],
              <<>>,[]},
          {roster,
              {<<"unicoder-888">>,<<"localhost">>,
               {<<"mike">>,<<"localhost">>,<<>>}},
              {<<"unicoder-888">>,<<"localhost">>},
              {<<"mike">>,<<"localhost">>,<<>>},
              <<"Mike">>,both,none,
              [<<"Group">>],
              <<>>,[]},
          {roster,
              {<<"unicoder-888">>,<<"localhost">>,
               {<<"kate">>,<<"localhost">>,<<>>}},
              {<<"unicoder-888">>,<<"localhost">>},
              {<<"kate">>,<<"localhost">>,<<>>},
              <<"Kate">>,both,none,
              [<<"Group">>],
              <<>>,[]},
          {passwd,
              {<<"alice">>,<<"localhost">>},
              #{iteration_count => 64,
                sha256 =>
                    #{salt => <<"vzpkeff3gqfhx3htGLhI/A==">>,
                      server_key =>
                          <<"0LXPxhm4hQkT82Wu0QPUufKB2H6ggjhoQYPvN5xedOA=">>,
                      stored_key =>
                          <<"TODBbISc2F4W3nB7PwuwaudnOXWJ0HAPAWUr1CrW+uA=">>}}},
          {passwd,
              {<<"kate">>,<<"localhost">>},
              #{iteration_count => 64,
                sha256 =>
                    #{salt => <<"4udP7PLpKghsqReqDpGkbQ==">>,
                      server_key =>
                          <<"tZj2QhrWzurupkIKAxQ9olAPMDltVBXX/yStPr4JLAw=">>,
                      stored_key =>
                          <<"Mu+LQJjWllpM+4xrhh9MwDxaFctJ7rM0YaRVs2hywGA=">>}}},
          {passwd,
              {<<"mike">>,<<"localhost">>},
              #{iteration_count => 64,
                sha256 =>
                    #{salt => <<"CfiA74kwTLtQeti7J5cM4A==">>,
                      server_key =>
                          <<"o94Qz630MfrG/u7U9Z5nuU8ce8QvM625z5yaZE/f2Yg=">>,
                      stored_key =>
                          <<"f4E1ktA+emIX0dqxNNapCIhNOwfPDXrfkg6h81GdDhY=">>}}},
          {passwd,
              {<<"1643-297533-195624-5778d00070b1ee83">>,<<"localhost">>},
              #{iteration_count => 64,
                sha256 =>
                    #{salt => <<"aWmdmzsC2p+BBgFjrGskBQ==">>,
                      server_key =>
                          <<"VcIc5vsub6Z4k4YKRg1eoytkvfXIWClE0yfdbx2EpUU=">>,
                      stored_key =>
                          <<"NVjul6ehwLALz5/A8Oc2ptEG4nZb/bayPcoR4/qlVao=">>}}},
          {passwd,
              {<<"bob">>,<<"localhost">>},
              #{iteration_count => 64,
                sha256 =>
                    #{salt => <<"Z1o9JgWBSA9XJlMa1D9hqA==">>,
                      server_key =>
                          <<"X9RGjcUPBORH9liHV9F9oThighQXyZzEGRnZUn/Vs9Y=">>,
                      stored_key =>
                          <<"ey5lliDWagvsTXkvj3Iu0FKJ5LihBwdsb+Qow2Gh+A4=">>}}}]

*** User 2022-01-27 15:32:17.474 ***
Execute /home/circleci/project/_build/mim1/rel/mongooseim/bin/mongooseimctl  load dump.bup
Result "** Table last_activity already exists on mongooseim@localhost, just entering data\n** Table private_storage already exists on mongooseim@localhost, just entering data\n** Table pubsub_index already exists on mongooseim@localhost, just entering data\n** Table pubsub_subnode already exists on mongooseim@localhost, just entering data\n** Table pubsub_subscription already exists on mongooseim@localhost, just entering data\n** Table pubsub_node already exists on mongooseim@localhost, just entering data\n** Table pubsub_item already exists on mongooseim@localhost, just entering data\n** Table pubsub_state already exists on mongooseim@localhost, just entering data\n** Table offline_msg already exists on mongooseim@localhost, just entering data\n** Table muc_registered already exists on mongooseim@localhost, just entering data\n** Table muc_room already exists on mongooseim@localhost, just entering data\n** Table caps_features already exists on mongooseim@localhost, just entering data\n** Table roster already exists on mongooseim@localhost, just entering data\n** Table vcard already exists on mongooseim@localhost, just entering data\n** Table passwd already exists on mongooseim@localhost, just entering data\n** Table roster_version already exists on mongooseim@localhost, just entering data\n** Table vcard_search already exists on mongooseim@localhost, just entering data\n** Table privacy already exists on mongooseim@localhost, just entering data\n"
ExitStatus 0

*** User 2022-01-27 15:32:17.474 ***
LoadReturns "** Table last_activity already exists on mongooseim@localhost, just entering data\n** Table private_storage already exists on mongooseim@localhost, just entering data\n** Table pubsub_index already exists on mongooseim@localhost, just entering data\n** Table pubsub_subnode already exists on mongooseim@localhost, just entering data\n** Table pubsub_subscription already exists on mongooseim@localhost, just entering data\n** Table pubsub_node already exists on mongooseim@localhost, just entering data\n** Table pubsub_item already exists on mongooseim@localhost, just entering data\n** Table pubsub_state already exists on mongooseim@localhost, just entering data\n** Table offline_msg already exists on mongooseim@localhost, just entering data\n** Table muc_registered already exists on mongooseim@localhost, just entering data\n** Table muc_room already exists on mongooseim@localhost, just entering data\n** Table caps_features already exists on mongooseim@localhost, just entering data\n** Table roster already exists on mongooseim@localhost, just entering data\n** Table vcard already exists on mongooseim@localhost, just entering data\n** Table passwd already exists on mongooseim@localhost, just entering data\n** Table roster_version already exists on mongooseim@localhost, just entering data\n** Table vcard_search already exists on mongooseim@localhost, just entering data\n** Table privacy already exists on mongooseim@localhost, just entering data\n"
*** CT 2022-01-27 15:32:17.476 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2320.html
*** CT 2022-01-27 15:32:17.476 *** View log from node mongooseim@localhost when finished mongooseim@localhost_4346.html



=== Ended at 2022-01-27 15:32:17
=== successfully completed test case
=== === Returned value: 5


Test run history | Top level test index | Latest test result