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

turn user-agent expectation version independent

ulferts13c338b70871
diff --git a/spec/requests/api/v3/authentication_spec.rb b/spec/requests/api/v3/authentication_spec.rb
index 916f9cf210d..63b1ff9372f 100644
--- a/spec/requests/api/v3/authentication_spec.rb
+++ b/spec/requests/api/v3/authentication_spec.rb
@@ -459,7 +459,7 @@ RSpec.describe "API V3 Authentication" do
headers: {
"Accept" => "*/*",
"Accept-Encoding" => "gzip;q=1.0,deflate;q=0.6,identity;q=0.3",
- "User-Agent" => "JSON::JWK::Set::Fetcher 2.10.1"
+ "User-Agent" => /JSON::JWK::Set::Fetcher \d+\.\d+\.\d+/
}
)
.to_return(status: 200, body: JWT::JWK::Set.new(jwk).export.to_json, headers: {})
@@ -521,7 +521,7 @@ RSpec.describe "API V3 Authentication" do
headers: {
"Accept" => "*/*",
"Accept-Encoding" => "gzip;q=1.0,deflate;q=0.6,identity;q=0.3",
- "User-Agent" => "JSON::JWK::Set::Fetcher 2.10.1"
+ "User-Agent" => /JSON::JWK::Set::Fetcher \d+\.\d+\.\d+/
}
)
.to_return(status: 200, body: JWT::JWK::Set.new(wrong_key).export.to_json, headers: {})