From 928a442fbcfae48198050af89ac882a36733c32f Mon Sep 17 00:00:00 2001 From: Dimitris Zorbas Date: Thu, 14 Mar 2024 17:49:52 +0200 Subject: [PATCH 1/2] Update Elixir version test matrix --- .github/workflows/elixir.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 8919ca82..802e4c11 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -68,10 +68,20 @@ jobs: otp: ['22', '23', '24', '25', '26'] elixir: ['1.11', '1.12', '1.13', '1.14', '1.15', '1.16'] exclude: - - {otp: '25', elixir: '1.10'} + - {otp: '22', elixir: '1.14'} + - {otp: '22', elixir: '1.15'} + - {otp: '22', elixir: '1.16'} + - {otp: '23', elixir: '1.14'} + - {otp: '23', elixir: '1.15'} + - {otp: '23', elixir: '1.16'} + - {otp: '24', elixir: '1.11'} + - {otp: '24', elixir: '1.12'} + - {otp: '24', elixir: '1.13'} + - {otp: '24', elixir: '1.14'} + - {otp: '24', elixir: '1.15'} - {otp: '25', elixir: '1.11'} - {otp: '25', elixir: '1.12'} - - {otp: '26', elixir: '1.10'} + - {otp: '25', elixir: '1.14'} - {otp: '26', elixir: '1.11'} - {otp: '26', elixir: '1.12'} - {otp: '26', elixir: '1.13'} From 5d5562a184331625e29a0da0dc26b098fb36fe71 Mon Sep 17 00:00:00 2001 From: Dimitris Zorbas Date: Fri, 15 Mar 2024 12:44:42 +0200 Subject: [PATCH 2/2] Fix map key order dependent test --- test/paths_test.exs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/paths_test.exs b/test/paths_test.exs index cdfa2494..4bec9a9f 100644 --- a/test/paths_test.exs +++ b/test/paths_test.exs @@ -15,8 +15,10 @@ defmodule OpenApiSpex.PathsTest do refute Map.has_key?(paths, "/api/noapi") refute Map.has_key?(paths, "/api/noapi_with_struct") - assert pets_path_item.put.operationId == "OpenApiSpexTest.PetController.update" - assert pets_path_item.patch.operationId == "OpenApiSpexTest.PetController.update (2)" + operation_ids = [pets_path_item.put.operationId, pets_path_item.patch.operationId] + + assert "OpenApiSpexTest.PetController.update" in operation_ids + assert "OpenApiSpexTest.PetController.update (2)" in operation_ids end end end