File 0003-tests-move-online-clone-ssh_auth_methods-into-the-ss.patch of Package libgit2.28344

From bbcadbbcd8184d1c04b12bcbecd162df2c2ed0b0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= <carlosmn@github.com>
Date: Wed, 2 Nov 2022 11:42:19 +0100
Subject: [PATCH 3/6] tests: move online::clone::ssh_auth_methods into the ssh
 test suite

We're currently running it as part of the online suite but that doesn't have any
setup for ssh so we won't find the GitHub keys we set up during the test.

It doesn't need the private key setup as we just want to make sure we see some
auth request from the server, but with the addition of hostkey checking we're
now seeing it fail when we skip these tests.
---
 tests/CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -urp libgit2-0.28.5.orig/tests/CMakeLists.txt libgit2-0.28.5/tests/CMakeLists.txt
--- libgit2-0.28.5.orig/tests/CMakeLists.txt	2020-03-31 08:42:14.000000000 -0500
+++ libgit2-0.28.5/tests/CMakeLists.txt	2023-03-14 16:31:11.833497916 -0500
@@ -59,7 +59,7 @@ ENDIF ()
 
 ADD_TEST(offline   "${libgit2_BINARY_DIR}/libgit2_clar" -v -xonline)
 ADD_TEST(invasive  "${libgit2_BINARY_DIR}/libgit2_clar" -v -score::ftruncate -sfilter::stream::bigfile -sodb::largefiles -siterator::workdir::filesystem_gunk -srepo::init -srepo::init::at_filesystem_root)
-ADD_TEST(online    "${libgit2_BINARY_DIR}/libgit2_clar" -v -sonline)
+ADD_TEST(online    "${libgit2_BINARY_DIR}/libgit2_clar" -v -sonline -xonline::clone::ssh_auth_methods)
 ADD_TEST(gitdaemon "${libgit2_BINARY_DIR}/libgit2_clar" -v -sonline::push)
-ADD_TEST(ssh       "${libgit2_BINARY_DIR}/libgit2_clar" -v -sonline::push -sonline::clone::ssh_cert -sonline::clone::ssh_with_paths)
+ADD_TEST(ssh       "${libgit2_BINARY_DIR}/libgit2_clar" -v -sonline::push -sonline::clone::ssh_cert -sonline::clone::ssh_with_paths -sonline::clone::ssh_auth_methods)
 ADD_TEST(proxy     "${libgit2_BINARY_DIR}/libgit2_clar" -v -sonline::clone::proxy_credentials_in_url -sonline::clone::proxy_credentials_request)
openSUSE Build Service is sponsored by