[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libosinfo] [libosinfo PATCH 2/2] tests: Add coverage for _set_installer_url()



Signed-off-by: Fabiano Fidêncio <fidencio redhat com>
---
 tests/install-script.xsl    | 1 +
 tests/test-install-script.c | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/tests/install-script.xsl b/tests/install-script.xsl
index f355152..09a5308 100644
--- a/tests/install-script.xsl
+++ b/tests/install-script.xsl
@@ -20,6 +20,7 @@ skipx
 network --device eth0 --bootproto dhcp
 rootpw <xsl:value-of select="config/admin-password"/>
 timezone --utc <xsl:value-of select="config/l10n-timezone"/>
+url <xsl:value-of select="config/installation-url"/>
 bootloader --location=mbr
 zerombr
 
diff --git a/tests/test-install-script.c b/tests/test-install-script.c
index 9252423..a19146b 100644
--- a/tests/test-install-script.c
+++ b/tests/test-install-script.c
@@ -37,6 +37,7 @@ static const gchar *expectData =                                        \
     "network --device eth0 --bootproto dhcp\n"                          \
     "rootpw 123456\n"                                                   \
     "timezone --utc Europe/London\n"                                    \
+    "url http://foo.bar\n";                                              \
     "bootloader --location=mbr\n"                                       \
     "zerombr\n"                                                         \
     "\n"                                                                \
@@ -107,6 +108,8 @@ static OsinfoInstallConfig *test_get_config(void)
     osinfo_install_config_set_user_autologin(config, TRUE);
     osinfo_install_config_set_user_administrator(config, TRUE);
 
+    osinfo_install_config_set_installation_url(config, "http://foo.bar";);
+
     return config;
 }
 
-- 
2.20.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]