mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-11-23 18:11:06 +08:00
Fix integration tests
This commit is contained in:
parent
bdf6e4487b
commit
7bbcebade8
1 changed files with 7 additions and 2 deletions
|
|
@ -201,7 +201,7 @@ defmodule Livebook.Hubs.TeamClient do
|
||||||
headers =
|
headers =
|
||||||
if team.user_id do
|
if team.user_id do
|
||||||
[
|
[
|
||||||
{"x-lb-version", Livebook.Config.app_version()},
|
{"x-lb-version", app_version()},
|
||||||
{"x-user", to_string(team.user_id)},
|
{"x-user", to_string(team.user_id)},
|
||||||
{"x-org", to_string(team.org_id)},
|
{"x-org", to_string(team.org_id)},
|
||||||
{"x-org-key", to_string(team.org_key_id)},
|
{"x-org-key", to_string(team.org_key_id)},
|
||||||
|
|
@ -209,7 +209,7 @@ defmodule Livebook.Hubs.TeamClient do
|
||||||
]
|
]
|
||||||
else
|
else
|
||||||
[
|
[
|
||||||
{"x-lb-version", Livebook.Config.app_version()},
|
{"x-lb-version", app_version()},
|
||||||
{"x-org", to_string(team.org_id)},
|
{"x-org", to_string(team.org_id)},
|
||||||
{"x-org-key", to_string(team.org_key_id)},
|
{"x-org-key", to_string(team.org_key_id)},
|
||||||
{"x-agent-name", Livebook.Config.agent_name()},
|
{"x-agent-name", Livebook.Config.agent_name()},
|
||||||
|
|
@ -1097,4 +1097,9 @@ defmodule Livebook.Hubs.TeamClient do
|
||||||
%{"provider_id" => id, "group_name" => name} in groups
|
%{"provider_id" => id, "group_name" => name} in groups
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
defp app_version do
|
||||||
|
Livebook.Config.app_version()
|
||||||
|
|> String.replace_suffix("-dev", "")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue