Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation rules #12

merged 3 commits into from Mar 18, 2016
Changes from 2 commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.


Just for now

@@ -0,0 +1,17 @@
# Check that AutoYaST rules were retrieved correctly.
set -e -x


# mac matches
zgrep -e 'ATTR.*"mac"=>"020000123456"' $Y2LOG

# hostid, hostaddress and network aren't nil
zgrep -e 'ATTR.*"hostid"=>"[^ ]*"' $Y2LOG
zgrep -e 'ATTR.*"hostaddress"=>"[^ ]*"' $Y2LOG
zgrep -e 'ATTR.*"network"=>"[^ ]*"' $Y2LOG

@@ -0,0 +1,65 @@
<?xml version="1.0"?>
<!DOCTYPE profile>
<profile xmlns="" xmlns:config="">
<confirm config:type="boolean">false</confirm>
<second_stage config:type="boolean">false</second_stage>

<install_recommended config:type="boolean">false</install_recommended>
<patterns config:type="list">
<packages config:type="list">
<!-- An SSH server is needed to perform the integration tests -->
<!-- The following packages are needed to run -->
<!-- Workaround about missing glibc-locale -->

<users config:type="list">
<encrypted config:type="boolean">false</encrypted>
<encrypted config:type="boolean">false</encrypted>

<chroot-scripts config:type="list">
<chrooted config:type="boolean">true</chrooted>
/usr/bin/systemctl enable sshd.service
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<autoinstall xmlns="" xmlns:config="">
<rules config:type="list">
<continue config:type="boolean">true</continue>
<continue config:type="boolean">false</continue>
@@ -0,0 +1 @@
@@ -0,0 +1,6 @@ # vagrant user has been created # root hast /root home (bnc#878427) # snapshot has been created # YaST2 packages are not installed # second stage was not run # Linuxrc are correctly retrieved when evaluating rules (bsc#963137)
@@ -0,0 +1,5 @@
require "aytests/spec_helper"

describe "install rules test" do
include_examples "test_scripts", "rules"
@@ -1,3 +1,9 @@
Fri Mar 18 09:02:17 UTC 2016 -

- Add a test to check if AutoYaST rules were correctly evaluated.

This comment has been minimized.

Copy link

mvidner Mar 18, 2016


Please mention (bsc#963137) also here

This comment has been minimized.

Copy link

mvidner Mar 18, 2016


Never mind, I did that.

- Version 1.0.15

Tue Feb 23 17:09:17 UTC 2016 -

@@ -17,7 +17,7 @@

Name: aytests-tests
Version: 1.0.14
Version: 1.0.15
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -30,8 +30,8 @@ License: GPL-3.0
Group: System/YaST

# Depends on .vars files mechanism.
Recommends: aytests >= 1.0.1
# Depends on the vars substitution in .linuxrc files.
Recommends: aytests >= 1.0.7

Profiles and test scripts for AutoYaST2 integration tests.
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.