Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

avoid relying on specific httpx version in spec

ulferts3823fb1b0199
diff --git a/modules/storages/spec/common/storages/adapters/authentication_strategies/oauth_user_token_spec.rb b/modules/storages/spec/common/storages/adapters/authentication_strategies/oauth_user_token_spec.rb
index 92d1b542a0c..c8ef80c1c0d 100644
--- a/modules/storages/spec/common/storages/adapters/authentication_strategies/oauth_user_token_spec.rb
+++ b/modules/storages/spec/common/storages/adapters/authentication_strategies/oauth_user_token_spec.rb
@@ -118,7 +118,7 @@ module Storages
"Accept" => "*/*",
"Accept-Encoding" => "gzip, deflate",
"Authorization" => "Bearer #{token.access_token}",
- "User-Agent" => "httpx.rb/1.3.4"
+ "User-Agent" => /httpx\.rb\/\d+\.\d+\.\d+/
}
)
.to_return(status: 401, body: <<~XML, headers: {})
@@ -140,7 +140,7 @@ module Storages
"Accept" => "*/*",
"Accept-Encoding" => "gzip, deflate",
"Authorization" => "Bearer NEW_ACCESS_TOKEN",
- "User-Agent" => "httpx.rb/1.3.4"
+ "User-Agent" => /httpx\.rb\/\d+\.\d+\.\d+/
}
)
.to_return(status: 200, body: <<~JSON, headers: { "Content-Type" => "application/json; charset=utf-8" })
@@ -157,7 +157,7 @@ module Storages
"Accept" => "*/*",
"Accept-Encoding" => "gzip, deflate",
"Content-Type" => "application/x-www-form-urlencoded",
- "User-Agent" => "httpx.rb/1.3.4"
+ "User-Agent" => /httpx\.rb\/\d+\.\d+\.\d+/
}
)
.to_return(status: 200, body: <<~JSON, headers: { "Content-Type" => "application/json; charset=utf-8" })