[java-idp-integration-tests] 02/14: Workaround to rewrite Sauce Labs "Mac 11" platform as "macOS 11"

Tom Zeller tzeller at dragonacea.biz
Thu Jun 17 13:55:46 UTC 2021


This is an automated email from the git hooks/post-receive script.

tzeller pushed a commit to branch main
in repository java-idp-integration-tests.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-integration-tests.git;a=commit;h=6ac21b36f38eafc5c1ad937afd36c20bcddb58d1

commit 6ac21b36f38eafc5c1ad937afd36c20bcddb58d1
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Wed Jun 16 21:30:32 2021 -0500

    Workaround to rewrite Sauce Labs "Mac 11" platform as "macOS 11"
    
    Jenkins Sauce On-Demand Plugin provides "Mac 11" but Sauce REST API
    expects "macOS 11".
---
 src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java b/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
index 3012c55..3414268 100644
--- a/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
+++ b/src/test/java/net/shibboleth/idp/test/BaseIntegrationTest.java
@@ -1554,7 +1554,13 @@ public abstract class BaseIntegrationTest
             final BrowserData browserData = new BrowserData();
 
             if (platform != null) {
-                browserData.setOS(platform);
+                // hack macOS
+                if (platform.equalsIgnoreCase("Mac 11")) {
+                    log.debug("Rewriting platform 'Mac 11' as 'macOS 11'");
+                    browserData.setOS("macOS 11");
+                } else {
+                    browserData.setOS(platform);
+                }
             }
 
             if (browser != null) {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list