-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GDPR retrieve pubsub (clean) #2294
Conversation
6402.1 / Erlang 19.3 / small_tests / 8cc75ab 6402.5 / Erlang 19.3 / ldap_mnesia / 8cc75ab 6402.4 / Erlang 19.3 / odbc_mssql_mnesia / 8cc75ab 6402.3 / Erlang 19.3 / mysql_redis / 8cc75ab 6402.2 / Erlang 19.3 / internal_mnesia / 8cc75ab 6402.6 / Erlang 19.3 / elasticsearch_and_cassandra_mnesia / 8cc75ab 6402.9 / Erlang 21.0 / riak_mnesia / 8cc75ab gdpr_SUITE:retrieve_personal_data:retrieve_vcard{error,{{badmatch,{error,enoent}},
[{gdpr_SUITE,request_and_unzip_personal_data,3,
[{file,"gdpr_SUITE.erl"},{line,471}]},
{gdpr_SUITE,retrieve_and_decode_personal_data,3,
[{file,"gdpr_SUITE.erl"},{line,461}]},
{gdpr_SUITE,retrieve_and_validate_personal_data,5,
[{file,"gdpr_SUITE.erl"},{line,419}]},
{escalus_story,story,4,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1545}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1063}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,995}]}]}} 6402.8 / Erlang 20.0 / pgsql_mnesia / 8cc75ab |
Codecov Report
@@ Coverage Diff @@
## gdpr-retrieve-clean #2294 +/- ##
========================================================
- Coverage 78.87% 18.13% -60.74%
========================================================
Files 334 334
Lines 28994 28892 -102
========================================================
- Hits 22870 5241 -17629
- Misses 6124 23651 +17527
Continue to review full report at Codecov.
|
6405.1 / Erlang 19.3 / small_tests / 43b2122 6405.3 / Erlang 19.3 / mysql_redis / 43b2122 6405.2 / Erlang 19.3 / internal_mnesia / 43b2122 pubsub_SUITE:dag+basic:publish_with_existing_id_test{error,{{badmatch,false},
[{pubsub_tools,check_response,2,
[{file,"pubsub_tools.erl"},{line,468}]},
{pubsub_tools,receive_response,3,
[{file,"pubsub_tools.erl"},{line,458}]},
{pubsub_tools,receive_and_check_response,4,
[{file,"pubsub_tools.erl"},{line,448}]},
{escalus_story,story,4,
[{file,"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1529}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1045}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,977}]}]}} 6405.6 / Erlang 19.3 / elasticsearch_and_cassandra_mnesia / 43b2122 6405.5 / Erlang 19.3 / ldap_mnesia / 43b2122 pubsub_SUITE:dag+collection:collection_delete_makes_leaf_parentless{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,<<"alicE59.8873@localhost/res1">>,escalus_tcp,
<0.3886.1>,
[{event_manager,<0.3790.1>},
{server,<<"localhost">>},
{username,<<"alicE59.8873">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.3790.1>},
{server,<<"localhost">>},
{username,<<"alicE59.8873">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,<<"alicE59.8873">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,<<"alicE59.8873">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>},
{stream_id,<<"D2D4E1AB8C3E5B8A">>}]},
5000],
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,138}]},
{pubsub_tools,receive_response,3,
[{file,"pubsub_tools.erl"},{line,457}]},
{pubsub_tools,receive_and_check_response,4,
[{file,"pubsub_tools.erl"},{line,448}]},
{pubsub_SUITE,'-collection_delete_makes_leaf_parentless/1-fun-0-',1,
[{file,"pubsub_SUITE.erl"},{line,1214}]},
{escalus_story,story,4,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/defaul... 6405.4 / Erlang 19.3 / odbc_mssql_mnesia / 43b2122 6405.8 / Erlang 20.0 / pgsql_mnesia / 43b2122 6405.9 / Erlang 21.0 / riak_mnesia / 43b2122 mod_global_distrib_SUITE:mod_global_distrib:test_pm_with_ungraceful_reconnection_to_different_server{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,<<"eve27.75452@localhost/res1">>,escalus_tcp,
<0.26163.1>,
[{event_manager,<0.26154.1>},
{server,<<"localhost">>},
{username,<<"eve27.75452">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.26154.1>},
{server,<<"localhost">>},
{username,<<"eve27.75452">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,<<"eve27.75452">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,<<"eve27.75452">>},
{server,<<"localhost">>},
{password,<<"password">>},
{port,5222},
{stream_management,true},
{stream_id,<<"B0D7B0D4313C981A">>}]},
10000],
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,138}]},
{mod_global_distrib_SUITE,
'-test_pm_with_ungraceful_reconnection_to_different_server/1-fun-0-',
4,
[{file,"mod_global_distrib_SUITE.erl"},{line,610}]},
{escalus_story,story,4,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
{tes... |
6406.1 / Erlang 19.3 / small_tests / dcbd224 6406.2 / Erlang 19.3 / internal_mnesia / dcbd224 6406.3 / Erlang 19.3 / mysql_redis / dcbd224 pubsub_SUITE:dag+collection:notify_collection_test{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,<<"alicE75.212306@localhost/res1">>,escalus_tcp,
<0.11000.3>,
[{event_manager,<0.10900.3>},
{server,<<"localhost">>},
{username,<<"alicE75.212306">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.10900.3>},
{server,<<"localhost">>},
{username,<<"alicE75.212306">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,<<"alicE75.212306">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,<<"alicE75.212306">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>},
{stream_id,<<"28307D1EADBE5701">>}]},
5000],
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,138}]},
{pubsub_tools,receive_response,3,
[{file,"pubsub_tools.erl"},{line,457}]},
{pubsub_tools,receive_and_check_response,4,
[{file,"pubsub_tools.erl"},{line,448}]},
{pubsub_SUITE,'-notify_collection_test/1-fun-0-',2,
[{file,"pubsub_SUITE.erl"},{line,1232}]},
{escalus_story,story,4,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/li... 6406.4 / Erlang 19.3 / odbc_mssql_mnesia / dcbd224 mod_global_distrib_SUITE:mod_global_distrib:test_pm_with_ungraceful_reconnection_to_different_server{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,<<"eve13.786946@localhost/res1">>,escalus_tcp,
<0.22964.3>,
[{event_manager,<0.22955.3>},
{server,<<"localhost">>},
{username,<<"eve13.786946">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.22955.3>},
{server,<<"localhost">>},
{username,<<"eve13.786946">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,<<"eve13.786946">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,<<"eve13.786946">>},
{server,<<"localhost">>},
{password,<<"password">>},
{port,5222},
{stream_management,true},
{stream_id,<<"9EFFBAD48097418F">>}]},
10000],
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,138}]},
{mod_global_distrib_SUITE,
'-test_pm_with_ungraceful_reconnection_to_different_server/1-fun-0-',
4,
[{file,"mod_global_distrib_SUITE.erl"},{line,610}]},
{escalus_story,story,4,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
... 6406.6 / Erlang 19.3 / elasticsearch_and_cassandra_mnesia / dcbd224 6406.5 / Erlang 19.3 / ldap_mnesia / dcbd224 6406.8 / Erlang 20.0 / pgsql_mnesia / dcbd224 6406.9 / Erlang 21.0 / riak_mnesia / dcbd224 mod_global_distrib_SUITE:mod_global_distrib:test_pm_with_ungraceful_reconnection_to_different_server{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,<<"eve48.91764@localhost/res1">>,escalus_tcp,
<0.26157.1>,
[{event_manager,<0.26148.1>},
{server,<<"localhost">>},
{username,<<"eve48.91764">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.26148.1>},
{server,<<"localhost">>},
{username,<<"eve48.91764">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,<<"eve48.91764">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,<<"eve48.91764">>},
{server,<<"localhost">>},
{password,<<"password">>},
{port,5222},
{stream_management,true},
{stream_id,<<"82646ECAD91141E4">>}]},
10000],
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,138}]},
{mod_global_distrib_SUITE,
'-test_pm_with_ungraceful_reconnection_to_different_server/1-fun-0-',
4,
[{file,"mod_global_distrib_SUITE.erl"},{line,610}]},
{escalus_story,story,4,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
{tes... mod_global_distrib_SUITE:mod_global_distrib:test_pm_with_ungraceful_reconnection_to_different_server{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,<<"eve72.782779@localhost/res1">>,escalus_tcp,
<0.26829.1>,
[{event_manager,<0.26820.1>},
{server,<<"localhost">>},
{username,<<"eve72.782779">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.26820.1>},
{server,<<"localhost">>},
{username,<<"eve72.782779">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,<<"eve72.782779">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,<<"eve72.782779">>},
{server,<<"localhost">>},
{password,<<"password">>},
{port,5222},
{stream_management,true},
{stream_id,<<"8832045CB168C32B">>}]},
10000],
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,138}]},
{mod_global_distrib_SUITE,
'-test_pm_with_ungraceful_reconnection_to_different_server/1-fun-0-',
4,
[{file,"mod_global_distrib_SUITE.erl"},{line,610}]},
{escalus_story,story,4,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR looks good 👍
Alice, Config, "pubsub", ExpectedHeader, ExpectedItems) | ||
Node1 = {_Domain, NodeName1} = pubsub_tools:pubsub_node(), | ||
Node2 = {_Domain, NodeName2} = pubsub_tools:pubsub_node(), | ||
{BinItem1, StringItem1} = item_content(<<"Item1Data">>), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about extracting to something like that:
ItemsData = [
{<<"Item1Data">>, Node1},
{<<"Item2Data">>,Node1 }
...],
lists:map(
fun({ItemData, Node}) ->
{BinItem, StringItem} = item_content(ItemData),
pubsub_tools:publish(Alice, BinItem, Node, [{with_payload, BinItem}])
end, ItemsData),
??
* Implement GDPR retrieve for pubsub * Use all tests again * Fix Dialyzer error in pubsub
This PR adds support for retrieving personal data from pubsub.