Skip to content

Commit

Permalink
Merge pull request #63 from Hanspagh/development
Browse files Browse the repository at this point in the history
Release 1.1.1
  • Loading branch information
ecly committed Mar 4, 2018
2 parents 05348c0 + 402f60a commit e722b83
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion lib/lol_buddy/riot_api/riot_api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ defmodule LolBuddy.RiotApi.Api do
defp last_season_tier_from_match(account_id, match) do
participant_id =
match["participantIdentities"]
|> Enum.find(fn %{"player" => %{"accountId" => id}} -> account_id == id end)
|> Enum.find(fn %{"player" => %{"currentAccountId" => id}} -> account_id == id end)
|> Map.get("participantId")

match["participants"]
Expand Down
28 changes: 14 additions & 14 deletions tsung-config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<!-- Each remote server that Tsung should performance test against. Only one would be needed if you have a load balancer. -->
<servers>
<server host="192.168.0.102" port="4000" type="tcp" />
<server host="buddy.gg" port="80" type="tcp" />
</servers>

<!-- Describe how load will be ramped up to your application over time -->
Expand Down Expand Up @@ -48,7 +48,7 @@
</request>

<!-- We need to change the session type to websocket -->
<change_type new_type="ts_websocket" host="192.168.0.102" port="4000" server_type="tcp" restore="true" store="true" bidi="true"/>
<change_type new_type="ts_websocket" host="buddy.gg" port="80" server_type="tcp" restore="true" store="true" bidi="true"/>

<!-- Try to connect on a websocket -->
<!-- See https://github.com/LearnBoost/socket.io-spec for more information -->
Expand All @@ -59,7 +59,7 @@
<!-- Do nothing for up to 5 seconds -->

<request subst="true">
<websocket type="message" >{"topic": "players:%%_session_id%%", "event": "phx_join", "ref":"1", "payload": {"payload" : {"champions" : ["Vayne", "Varus", "Tristana"], "icon_id" : 3186, "leagues" : [{"rank" : 4, "tier" : "PLATINUM", "type" : "RANKED_SOLO_5x5"}, {"rank" : 1, "tier" : "GOLD", "type" : "RANKED_FLEX_SR"}], "name" : "%%_id1%%", "positions" : ["marksman", "jungle"], "region" : "euw", "userInfo" : {"agegroup" : "interval2", "comment" : "", "criteria" : {"ageGroups" : {"interval1" : false, "interval2" : true, "interval3" : false}, "autoRefresh" : false, "positions" : {"jungle" : true, "marksman" : true, "mid" : true, "support" : true, "top" : true}, "voiceChat" : {"NO" : true, "YES" : false}}, "id" : "%%_session_id%%", "languages" : ["af"], "selectedRoles" : {"jungle" : true, "marksman" : true, "mid" : false, "support" : false, "top" : false}, "voicechat" : false}}} }</websocket>
<websocket type="message" >{"topic": "players:%%_session_id%%", "event": "phx_join", "ref":"1", "payload": {"payload" : {"champions" : ["Vayne", "Varus", "Tristana"], "icon_id" : 3186, "leagues" : [{"rank" : 4, "tier" : "PLATINUM", "type" : "RANKED_SOLO_5x5"}, {"rank" : 1, "tier" : "GOLD", "type" : "RANKED_FLEX_SR"}], "name" : "%%_id1%%", "positions" : ["marksman", "jungle"], "region" : "euw", "userInfo" : {"agegroup" : "interval2", "comment" : "", "criteria" : {"ageGroups" : {"interval1" : false, "interval2" : true, "interval3" : false, "ignoreLanguage": false}, "positions" : {"jungle" : true, "marksman" : true, "mid" : true, "support" : true, "top" : true}, "voiceChat" : {"NO" : true, "YES" : false}}, "id" : "%%_session_id%%", "languages" : ["af"], "selectedRoles" : {"jungle" : true, "marksman" : true, "mid" : false, "support" : false, "top" : false}, "voicechat" : false}}} }</websocket>
</request>

<!-- Do nothing for up to 5 seconds -->
Expand All @@ -72,7 +72,7 @@
<websocket type="close"></websocket>
</request>
</session>

<session name="activity_browse" probability="25" type="ts_http">

<setdynvars sourcetype="erlang" callback="ts_user_server:get_unique_id">
Expand All @@ -90,7 +90,7 @@
</request>

<!-- We need to change the session type to websocket -->
<change_type new_type="ts_websocket" host="192.168.0.102" port="4000" server_type="tcp" restore="true" store="true" bidi="true"/>
<change_type new_type="ts_websocket" host="buddy.gg" port="80" server_type="tcp" restore="true" store="true" bidi="true"/>

<!-- Try to connect on a websocket -->
<!-- See https://github.com/LearnBoost/socket.io-spec for more information -->
Expand All @@ -101,7 +101,7 @@
<!-- Do nothing for up to 5 seconds -->

<request subst="true">
<websocket type="message" >{"topic": "players:%%_session_id%%", "event": "phx_join", "ref":"1", "payload": {"payload" : {"champions" : ["Vayne", "Varus", "Tristana"], "icon_id" : 3186, "leagues" : [{"rank" : 4, "tier" : "SILVER", "type" : "RANKED_SOLO_5x5"}, {"rank" : 1, "tier" : "GOLD", "type" : "RANKED_FLEX_SR"}], "name" : "%%_id1%%", "positions" : ["marksman", "jungle"], "region" : "euw", "userInfo" : {"agegroup" : "interval2", "comment" : "", "criteria" : {"ageGroups" : {"interval1" : false, "interval2" : true, "interval3" : false}, "autoRefresh" : false, "positions" : {"jungle" : true, "marksman" : true, "mid" : true, "support" : true, "top" : true}, "voiceChat" : {"NO" : true, "YES" : false}}, "id" : "%%_session_id%%", "languages" : ["af"], "selectedRoles" : {"jungle" : true, "marksman" : true, "mid" : false, "support" : false, "top" : false}, "voicechat" : false}}} }</websocket>
<websocket type="message" >{"topic": "players:%%_session_id%%", "event": "phx_join", "ref":"1", "payload": {"payload" : {"champions" : ["Vayne", "Varus", "Tristana"], "icon_id" : 3186, "leagues" : [{"rank" : 4, "tier" : "SILVER", "type" : "RANKED_SOLO_5x5"}, {"rank" : 1, "tier" : "GOLD", "type" : "RANKED_FLEX_SR"}], "name" : "%%_id1%%", "positions" : ["marksman", "jungle"], "region" : "euw", "userInfo" : {"agegroup" : "interval2", "comment" : "", "criteria" : {"ageGroups" : {"interval1" : false, "interval2" : true, "interval3" : false, "ignoreLanguage": false}, "positions" : {"jungle" : true, "marksman" : true, "mid" : true, "support" : true, "top" : true}, "voiceChat" : {"NO" : true, "YES" : false}}, "id" : "%%_session_id%%", "languages" : ["af"], "selectedRoles" : {"jungle" : true, "marksman" : true, "mid" : false, "support" : false, "top" : false}, "voicechat" : false}}} }</websocket>
</request>

<!-- Do nothing for up to 5 seconds -->
Expand All @@ -114,7 +114,7 @@
<websocket type="close"></websocket>
</request>
</session>

<session name="activity_browse" probability="25" type="ts_http">

<setdynvars sourcetype="erlang" callback="ts_user_server:get_unique_id">
Expand All @@ -132,7 +132,7 @@
</request>

<!-- We need to change the session type to websocket -->
<change_type new_type="ts_websocket" host="192.168.0.102" port="4000" server_type="tcp" restore="true" store="true" bidi="true"/>
<change_type new_type="ts_websocket" host="buddy.gg" port="80" server_type="tcp" restore="true" store="true" bidi="true"/>

<!-- Try to connect on a websocket -->
<!-- See https://github.com/LearnBoost/socket.io-spec for more information -->
Expand All @@ -143,7 +143,7 @@
<!-- Do nothing for up to 5 seconds -->

<request subst="true">
<websocket type="message" >{"topic": "players:%%_session_id%%", "event": "phx_join", "ref":"1", "payload": {"payload" : {"champions" : ["Vayne", "Varus", "Tristana"], "icon_id" : 3186, "leagues" : [{"rank" : 4, "tier" : "SILVER", "type" : "RANKED_SOLO_5x5"}, {"rank" : 1, "tier" : "GOLD", "type" : "RANKED_FLEX_SR"}], "name" : "%%_id1%%", "positions" : ["marksman", "jungle"], "region" : "euw", "userInfo" : {"agegroup" : "interval2", "comment" : "", "criteria" : {"ageGroups" : {"interval1" : false, "interval2" : true, "interval3" : false}, "autoRefresh" : false, "positions" : {"jungle" : true, "marksman" : true, "mid" : true, "support" : true, "top" : true}, "voiceChat" : {"NO" : false, "YES" : true}}, "id" : "%%_session_id%%", "languages" : ["af"], "selectedRoles" : {"jungle" : true, "marksman" : true, "mid" : false, "support" : false, "top" : false}, "voicechat" : true}}} }</websocket>
<websocket type="message" >{"topic": "players:%%_session_id%%", "event": "phx_join", "ref":"1", "payload": {"payload" : {"champions" : ["Vayne", "Varus", "Tristana"], "icon_id" : 3186, "leagues" : [{"rank" : 4, "tier" : "SILVER", "type" : "RANKED_SOLO_5x5"}, {"rank" : 1, "tier" : "GOLD", "type" : "RANKED_FLEX_SR"}], "name" : "%%_id1%%", "positions" : ["marksman", "jungle"], "region" : "euw", "userInfo" : {"agegroup" : "interval2", "comment" : "", "criteria" : {"ageGroups" : {"interval1" : false, "interval2" : true, "interval3" : false, "ignoreLanguage": false}, "positions" : {"jungle" : true, "marksman" : true, "mid" : true, "support" : true, "top" : true}, "voiceChat" : {"NO" : false, "YES" : true}}, "id" : "%%_session_id%%", "languages" : ["af"], "selectedRoles" : {"jungle" : true, "marksman" : true, "mid" : false, "support" : false, "top" : false}, "voicechat" : true}}} }</websocket>
</request>

<!-- Do nothing for up to 5 seconds -->
Expand All @@ -156,7 +156,7 @@
<websocket type="close"></websocket>
</request>
</session>

<session name="activity_browse" probability="25" type="ts_http">

<setdynvars sourcetype="erlang" callback="ts_user_server:get_unique_id">
Expand All @@ -174,7 +174,7 @@
</request>

<!-- We need to change the session type to websocket -->
<change_type new_type="ts_websocket" host="192.168.0.102" port="4000" server_type="tcp" restore="true" store="true" bidi="true"/>
<change_type new_type="ts_websocket" host="buddy.gg" port="80" server_type="tcp" restore="true" store="true" bidi="true"/>

<!-- Try to connect on a websocket -->
<!-- See https://github.com/LearnBoost/socket.io-spec for more information -->
Expand All @@ -185,7 +185,7 @@
<!-- Do nothing for up to 5 seconds -->

<request subst="true">
<websocket type="message" >{"topic": "players:%%_session_id%%", "event": "phx_join", "ref":"1", "payload": {"payload" : {"champions" : ["Vayne", "Varus", "Tristana"], "icon_id" : 3186, "leagues" : [{"rank" : 4, "tier" : "PLATINUM", "type" : "RANKED_SOLO_5x5"}, {"rank" : 1, "tier" : "GOLD", "type" : "RANKED_FLEX_SR"}], "name" : "%%_id1%%", "positions" : ["marksman", "jungle"], "region" : "euw", "userInfo" : {"agegroup" : "interval2", "comment" : "", "criteria" : {"ageGroups" : {"interval1" : false, "interval2" : true, "interval3" : false}, "autoRefresh" : false, "positions" : {"jungle" : true, "marksman" : true, "mid" : true, "support" : true, "top" : true}, "voiceChat" : {"NO" : false, "YES" : true}}, "id" : "%%_session_id%%", "languages" : ["af"], "selectedRoles" : {"jungle" : true, "marksman" : true, "mid" : false, "support" : false, "top" : false}, "voicechat" : true}}} }</websocket>
<websocket type="message" >{"topic": "players:%%_session_id%%", "event": "phx_join", "ref":"1", "payload": {"payload" : {"champions" : ["Vayne", "Varus", "Tristana"], "icon_id" : 3186, "leagues" : [{"rank" : 4, "tier" : "PLATINUM", "type" : "RANKED_SOLO_5x5"}, {"rank" : 1, "tier" : "GOLD", "type" : "RANKED_FLEX_SR"}], "name" : "%%_id1%%", "positions" : ["marksman", "jungle"], "region" : "euw", "userInfo" : {"agegroup" : "interval2", "comment" : "", "criteria" : {"ageGroups" : {"interval1" : false, "interval2" : true, "interval3" : false, "ignoreLanguage": false}, "positions" : {"jungle" : true, "marksman" : true, "mid" : true, "support" : true, "top" : true}, "voiceChat" : {"NO" : false, "YES" : true}}, "id" : "%%_session_id%%", "languages" : ["af"], "selectedRoles" : {"jungle" : true, "marksman" : true, "mid" : false, "support" : false, "top" : false}, "voicechat" : true}}} }</websocket>
</request>

<!-- Do nothing for up to 5 seconds -->
Expand All @@ -198,6 +198,6 @@
<websocket type="close"></websocket>
</request>
</session>

</sessions>
</tsung>
</tsung>

0 comments on commit e722b83

Please sign in to comment.