Hello community,

here is the log from the commit of package yast2-nis-client for 
openSUSE:Factory checked in at 2020-05-15 23:50:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-nis-client (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-nis-client.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-nis-client"

Fri May 15 23:50:07 2020 rev:72 rq:803025 version:4.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-nis-client/yast2-nis-client.changes        
2020-03-01 21:27:13.460460230 +0100
+++ 
/work/SRC/openSUSE:Factory/.yast2-nis-client.new.2738/yast2-nis-client.changes  
    2020-05-15 23:50:12.405300198 +0200
@@ -1,0 +2,7 @@
+Tue May 12 14:02:35 UTC 2020 - Josef Reidinger <jreidin...@suse.com>
+
+- Autoyast schema: Allow optional types for string and map objects
+  (bsc#1170886)
+- 4.3.0
+
+-------------------------------------------------------------------

Old:
----
  yast2-nis-client-4.2.3.tar.bz2

New:
----
  yast2-nis-client-4.3.0.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2-nis-client.spec ++++++
--- /var/tmp/diff_new_pack.Uedbtz/_old  2020-05-15 23:50:13.601302503 +0200
+++ /var/tmp/diff_new_pack.Uedbtz/_new  2020-05-15 23:50:13.605302511 +0200
@@ -20,7 +20,7 @@
 Summary:        YaST2 - Network Information Services (NIS, YP) Configuration
 License:        GPL-2.0-only
 Group:          System/YaST
-Version:        4.2.3
+Version:        4.3.0
 Release:        0
 Url:            https://github.com/yast/yast-nis-client
 
@@ -32,13 +32,12 @@
 BuildRequires:  libnsl-devel
 BuildRequires:  libtirpc-devel
 BuildRequires:  libtool
-BuildRequires:  perl-XML-Writer
 BuildRequires:  update-desktop-files
 BuildRequires:  yast2 >= 2.23.17
 BuildRequires:  yast2-core-devel
 BuildRequires:  yast2-devtools >= 4.2.2
 BuildRequires:  yast2-pam
-BuildRequires:  yast2-testsuite
+BuildRequires:  rubygem(%rb_default_ruby_abi:rspec)
 
 # Wizard::SetDesktopTitleAndIcon
 Requires:       yast2 >= 2.21.22

++++++ yast2-nis-client-4.2.3.tar.bz2 -> yast2-nis-client-4.3.0.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-nis-client-4.2.3/.travis.yml 
new/yast2-nis-client-4.3.0/.travis.yml
--- old/yast2-nis-client-4.2.3/.travis.yml      2020-02-24 16:26:05.000000000 
+0100
+++ new/yast2-nis-client-4.3.0/.travis.yml      2020-05-12 16:31:23.000000000 
+0200
@@ -8,4 +8,4 @@
 script:
   # the "yast-travis-cpp" script is included in the base yastdevel/cpp image
   # see https://github.com/yast/docker-yast-cpp/blob/master/yast-travis-cpp
-  - docker run -it -e TRAVIS=1 -e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" 
yast-nis-client-image yast-travis-cpp
+  - docker run -it --privileged -e TRAVIS=1 -e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" 
yast-nis-client-image yast-travis-cpp
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-nis-client-4.2.3/CONTRIBUTING.md 
new/yast2-nis-client-4.3.0/CONTRIBUTING.md
--- old/yast2-nis-client-4.2.3/CONTRIBUTING.md  2020-02-24 16:26:05.000000000 
+0100
+++ new/yast2-nis-client-4.3.0/CONTRIBUTING.md  1970-01-01 01:00:00.000000000 
+0100
@@ -1,89 +0,0 @@
-YaST Contribution Guidelines
-============================
-
-YaST is an open source project and as such it welcomes all kinds of
-contributions. If you decide to contribute, please follow these guidelines to
-ensure the process is effective and pleasant both for you and the YaST 
maintainers.
-
-There are two main forms of contribution: reporting bugs and performing code
-changes.
-
-Bug Reports
------------
-
-If you find a problem, please report it either using
-[Bugzilla](https://bugzilla.suse.com/enter_bug.cgi?format=guided&product=openSUSE+Factory&component=YaST2)
-or [GitHub issues](../../issues). (For Bugzilla, use the [simplified
-registration](https://secure-www.novell.com/selfreg/jsp/createSimpleAccount.jsp)
-if you don't have an account yet.)
-
-When creating a bug report, please follow our [bug reporting
-guidelines](http://en.opensuse.org/openSUSE:Report_a_YaST_bug).
-
-We can't guarantee that every bug will be fixed, but we'll try.
-
-Code Changes
-------------
-
-We welcome all kinds of code contributions, from simple bug fixes to 
significant
-refactorings and implementation of new features. However, before making any
-non-trivial contribution, get in touch with us first — this can prevent wasted
-effort on both sides. Also, have a look at our [development
-documentation](http://en.opensuse.org/openSUSE:YaST_development).
-
-To send us your code change, use GitHub pull requests. The workflow is as
-follows:
-
-  1. Fork the project.
-
-  2. Create a topic branch based on `master`.
-
-  3. Implement your change, including tests (if possible). Make sure you adhere
-     to the [Ruby style
-     guide](https://github.com/SUSE/style-guides/blob/master/Ruby.md).
-
-  4. Update the package version (in `packages/*.spec`, usually by
-     `rake version:bump`) and add a new entry to the `package/*.changes` file
-     (by `osc vc package`).  
-     For bigger changes or changes which need longer discussion it is advised 
to
-     add this as a separate last commit so it can be easily updated when 
another
-     change is merged in the meantime.
-
-  5. Make sure your change didn't break anything by building the RPM package
-     (`rake osc:build`). The build process includes running the full testsuite.
-
-  6. Publish the branch and create a pull request.
-
-  7. YaST developers will review your change and possibly point out issues.
-     Adapt the code under their guidance until they are all resolved.
-
-  8. Finally, the pull request will get merged or rejected.
-
-See also [GitHub's guide on
-contributing](https://help.github.com/articles/fork-a-repo).
-
-If you want to do multiple unrelated changes, use separate branches and pull
-requests.
-
-### Commits
-
-Each commit in the pull request should do only one thing, which is clearly
-described by its commit message. Especially avoid mixing formatting changes and
-functional changes into one commit. When writing commit messages, adhere to
-[widely used
-conventions](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
-
-If your commit is related to a bug in Bugzilla or an issue on GitHub, make sure
-you mention it in the commit message for cross-reference. Use format like
-bnc#775814 or gh#yast/yast-foo#42. See also [GitHub
-autolinking](https://help.github.com/articles/github-flavored-markdown#references)
-and [openSUSE abbreviation
-reference](http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines#Current_set_of_abbreviations).
-
-Additional Information
-----------------------
-
-If you have any question, feel free to ask at the [development mailing
-list](http://lists.opensuse.org/yast-devel/) or at the
-[#yast](http://webchat.freenode.net/?channels=%23yast) IRC channel on freenode.
-We'll do our best to provide a timely and accurate answer.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-nis-client-4.2.3/configure.in.in 
new/yast2-nis-client-4.3.0/configure.in.in
--- old/yast2-nis-client-4.2.3/configure.in.in  2020-02-24 16:26:05.000000000 
+0100
+++ new/yast2-nis-client-4.3.0/configure.in.in  2020-05-12 16:31:23.000000000 
+0200
@@ -9,7 +9,6 @@
 @YAST2-CHECKS-COMMON@
 @YAST2-CHECKS-YCP@
 @YAST2-CHECKS-PROGRAM@
-@YAST2-CHECKS-TESTSUITE@
 
 ## and generate the output...
 @YAST2-OUTPUT@
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-nis-client-4.2.3/package/yast2-nis-client.changes 
new/yast2-nis-client-4.3.0/package/yast2-nis-client.changes
--- old/yast2-nis-client-4.2.3/package/yast2-nis-client.changes 2020-02-24 
16:26:05.000000000 +0100
+++ new/yast2-nis-client-4.3.0/package/yast2-nis-client.changes 2020-05-12 
16:31:23.000000000 +0200
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Tue May 12 14:02:35 UTC 2020 - Josef Reidinger <jreidin...@suse.com>
+
+- Autoyast schema: Allow optional types for string and map objects
+  (bsc#1170886)
+- 4.3.0
+
+-------------------------------------------------------------------
 Mon Feb 24 14:12:47 UTC 2020 - Josef Reidinger <jreidin...@suse.com>
 
 - Fixed crash caused by previous fix (bsc#1164699)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-nis-client-4.2.3/package/yast2-nis-client.spec 
new/yast2-nis-client-4.3.0/package/yast2-nis-client.spec
--- old/yast2-nis-client-4.2.3/package/yast2-nis-client.spec    2020-02-24 
16:26:05.000000000 +0100
+++ new/yast2-nis-client-4.3.0/package/yast2-nis-client.spec    2020-05-12 
16:31:23.000000000 +0200
@@ -18,7 +18,7 @@
 
 Name:           yast2-nis-client
 Summary:        YaST2 - Network Information Services (NIS, YP) Configuration
-Version:        4.2.3
+Version:        4.3.0
 Release:        0
 Url:            https://github.com/yast/yast-nis-client
 Group:          System/YaST
@@ -28,10 +28,11 @@
 
 # SuSEfirewall2_* services merged into one service yast2-2.23.17
 BuildRequires:  yast2 >= 2.23.17
-BuildRequires:  gcc-c++ perl-XML-Writer doxygen yast2-core-devel 
yast2-testsuite yast2-pam update-desktop-files libtool
+BuildRequires:  gcc-c++ doxygen yast2-core-devel yast2-pam 
update-desktop-files libtool
 BuildRequires:  libnsl-devel
 BuildRequires:  libtirpc-devel
 BuildRequires:  yast2-devtools >= 4.2.2
+BuildRequires:  rubygem(%rb_default_ruby_abi:rspec)
 
 # Wizard::SetDesktopTitleAndIcon
 Requires:       yast2 >= 2.21.22
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-nis-client-4.2.3/src/autoyast-rnc/nis.rnc 
new/yast2-nis-client-4.3.0/src/autoyast-rnc/nis.rnc
--- old/yast2-nis-client-4.2.3/src/autoyast-rnc/nis.rnc 2020-02-24 
16:26:05.000000000 +0100
+++ new/yast2-nis-client-4.3.0/src/autoyast-rnc/nis.rnc 2020-05-12 
16:31:23.000000000 +0200
@@ -1,35 +1,44 @@
+
+include "common.rnc"
+
 nis =
   element nis {
-    element start_nis { BOOLEAN }? &
-    element netconfig_policy { text }? &
-    nis_domain? &              # may be set by dhcp
-    nis_servers? &
-    nis_broadcast? &
-    element nis_other_domains {
-      LIST,
-      element nis_other_domain {
-        nis_domain &           # here it is mandatory
-        nis_servers? &
-        nis_broadcast?
-      }*
-    }? &
-    element nis_broken_server { BOOLEAN }? &
-    element nis_local_only { BOOLEAN }? &
-    element nis_options { text }? &
-
-    element start_autofs { BOOLEAN }? &
-    element slp_domain {
-                Anything?
-    }?
+    MAP,
+    (
+      element start_nis { BOOLEAN }? &
+      element netconfig_policy { STRING }? &
+      nis_domain? &            # may be set by dhcp
+      nis_servers? &
+      nis_broadcast? &
+      element nis_other_domains {
+        LIST,
+        element nis_other_domain {
+          MAP,
+          (
+            nis_domain &               # here it is mandatory
+            nis_servers? &
+            nis_broadcast?
+          )
+        }*
+      }? &
+      element nis_broken_server { BOOLEAN }? &
+      element nis_local_only { BOOLEAN }? &
+      element nis_options { STRING }? &
+
+      element start_autofs { BOOLEAN }? &
+      element slp_domain {
+                  Anything?
+      }?
+    )
   }
 
 nis_domain =
-  element nis_domain { text }
+  element nis_domain { STRING }
 
 nis_servers = 
   element nis_servers {
     LIST,
-    element nis_server { text }*
+    element nis_server { STRING }*
   }
 
 nis_broadcast =
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-nis-client-4.2.3/test/Makefile.am 
new/yast2-nis-client-4.3.0/test/Makefile.am
--- old/yast2-nis-client-4.2.3/test/Makefile.am 1970-01-01 01:00:00.000000000 
+0100
+++ new/yast2-nis-client-4.3.0/test/Makefile.am 2020-05-12 16:31:23.000000000 
+0200
@@ -0,0 +1,7 @@
+TESTS = \
+  nis_test.rb
+
+TEST_EXTENSIONS = .rb
+RB_LOG_COMPILER = rspec
+VERBOSE = 1
+EXTRA_DIST = $(TESTS) test_helper.rb
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-nis-client-4.2.3/test/nis_test.rb 
new/yast2-nis-client-4.3.0/test/nis_test.rb
--- old/yast2-nis-client-4.2.3/test/nis_test.rb 1970-01-01 01:00:00.000000000 
+0100
+++ new/yast2-nis-client-4.3.0/test/nis_test.rb 2020-05-12 16:31:23.000000000 
+0200
@@ -0,0 +1,142 @@
+require_relative "test_helper"
+
+Yast.import "Nis"
+
+describe Yast::Nis do
+  subject { Yast::Nis }
+
+  before do
+    allow(Yast::SCR).to receive(:Read)
+    allow(Yast::SCR).to receive(:Write).and_return(true)
+    allow(Yast::SCR).to receive(:Execute).and_return("exit" => 0, "stdout" => 
"")
+    allow(Yast::Service).to receive(:Enabled).and_return(false)
+    allow(Yast::Service).to receive(:active?).and_return(false)
+    allow(Yast::Service).to receive(:Start)
+    allow(Yast::Service).to receive(:Restart)
+    allow(Yast::Service).to receive(:Stop)
+    allow(Yast::Service).to receive(:Enable)
+    allow(Yast::Service).to receive(:Disable)
+    allow(Yast::Service).to receive(:Status).and_return(0)
+    allow(Y2Firewall::Firewalld.instance).to receive(:read)
+    allow(Yast::Autologin).to receive(:Read)
+    allow(Yast::Nsswitch).to receive(:ReadDb).and_return([])
+    allow(Yast::Package).to receive(:Installed).and_return(true)
+
+    subject.main
+  end
+
+  describe ".Read" do
+    it "reads ypbind service status" do
+      allow(Yast::Service).to receive(:Enabled).and_return(true)
+
+      subject.Read
+      expect(subject.start).to eq true
+    end
+
+    it "reads domain from ypdomainname output" do
+      expect(Yast::SCR).to receive(:Execute)
+        .with(path(".target.bash_output"), "/usr/bin/ypdomainname")
+        .and_return("exit" => 0, "stdout" => "pepa.suse.cz")
+
+      subject.Read
+      expect(subject.GetDomain).to eq "pepa.suse.cz"
+    end
+
+    # Is it still valid way with wicked?
+    it "reads if dhcpcd is running" do
+      expect(Yast::SCR).to receive(:Execute)
+        .with(path(".target.bash"), /dhcpcd/)
+        .and_return(0)
+
+      subject.Read
+      expect(subject.dhcpcd_running).to eq true
+    end
+
+    it "reads local_only flag" do
+      expect(Yast::SCR).to 
receive(:Read).with(path(".sysconfig.ypbind.YPBIND_LOCAL_ONLY")).and_return("yes")
+
+      subject.Read
+      expect(subject.local_only).to eq true
+    end
+
+    it "reads global_broadcast flag" do
+      expect(Yast::SCR).to 
receive(:Read).with(path(".sysconfig.ypbind.YPBIND_BROADCAST")).and_return("yes")
+
+      subject.Read
+      expect(subject.global_broadcast).to eq true
+    end
+
+    it "reads broken_server flag" do
+      expect(Yast::SCR).to 
receive(:Read).with(path(".sysconfig.ypbind.YPBIND_BROKEN_SERVER")).and_return("yes")
+
+      subject.Read
+      expect(subject.broken_server).to eq true
+    end
+
+    it "reads options" do
+      expect(Yast::SCR).to 
receive(:Read).with(path(".sysconfig.ypbind.YPBIND_OPTIONS")).and_return("yohoho")
+
+      subject.Read
+      expect(subject.options).to eq "yohoho"
+    end
+
+    it "reads if users is defined in ldap" do
+      expect(Yast::Nsswitch).to 
receive(:ReadDb).with("passwd").and_return(["ldap"])
+
+      subject.Read
+      expect(subject.UsersByLdap).to eq true
+    end
+
+    it "reads autologin settings" do
+      expect(Yast::Autologin).to receive(:Read)
+
+      subject.Read
+    end
+
+    it "reads firewall settings" do
+      expect(Y2Firewall::Firewalld.instance).to receive(:read)
+
+      subject.Read
+    end
+  end
+
+  describe "#Write" do
+    # TODO: weak test and also some behavior missing
+    it "calls WriteOnly" do
+      expect(subject).to receive(:WriteOnly).and_return(true)
+
+      subject.Write
+    end
+
+    it "stops ypbind" do
+      expect(Yast::Service).to receive(:Stop)
+
+      subject.Write
+    end
+
+    context "start flag is set" do
+      before do
+        subject.start = true
+      end
+
+      it "starts rpcbind if not already running" do
+        allow(Yast::Service).to receive(:Status).with("rpcbind").and_return(1)
+        expect(Yast::Service).to receive(:Start).with("rpcbind")
+
+        subject.Write
+      end
+
+      it "starts ypbind" do
+        expect(Yast::Service).to receive(:Start).with("ypbind")
+
+        subject.Write
+      end
+    end
+
+    it "reloads firewall" do
+      expect(Y2Firewall::Firewalld.instance).to receive(:reload)
+
+      subject.Write
+    end
+  end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-nis-client-4.2.3/test/test_helper.rb 
new/yast2-nis-client-4.3.0/test/test_helper.rb
--- old/yast2-nis-client-4.2.3/test/test_helper.rb      1970-01-01 
01:00:00.000000000 +0100
+++ new/yast2-nis-client-4.3.0/test/test_helper.rb      2020-05-12 
16:31:23.000000000 +0200
@@ -0,0 +1,44 @@
+# frozen_string_literal: true
+
+ENV["Y2DIR"] = File.expand_path("../src", __dir__)
+
+# localization agnostic tests
+ENV["LC_ALL"] = "en_US.utf-8"
+ENV["LANG"] = "en_US.utf-8"
+
+require "yast"
+require "yast/rspec"
+
+# force utf-8 encoding for external
+Encoding.default_external = Encoding::UTF_8
+
+RSpec.configure do |config|
+  config.mock_with :rspec do |mocks|
+    # If you misremember a method name both in code and in tests,
+    # will save you.
+    # 
https://relishapp.com/rspec/rspec-mocks/v/3-0/docs/verifying-doubles/partial-doubles
+    #
+    # With graceful degradation for RSpec 2
+    mocks.verify_partial_doubles = true if 
mocks.respond_to?(:verify_partial_doubles=)
+  end
+end
+
+if ENV["COVERAGE"]
+  require "simplecov"
+  SimpleCov.start do
+    add_filter "/test/"
+  end
+
+  src_location = File.expand_path("../src", __dir__)
+  # track all ruby files under src
+  SimpleCov.track_files("#{src_location}/**/*.rb")
+
+  # use coveralls for on-line code coverage reporting at Travis CI
+  if ENV["TRAVIS"]
+    require "coveralls"
+    SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+      SimpleCov::Formatter::HTMLFormatter,
+      Coveralls::SimpleCov::Formatter
+    ]
+  end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-nis-client-4.2.3/testsuite/Makefile.am 
new/yast2-nis-client-4.3.0/testsuite/Makefile.am
--- old/yast2-nis-client-4.2.3/testsuite/Makefile.am    2020-02-24 
16:26:05.000000000 +0100
+++ new/yast2-nis-client-4.3.0/testsuite/Makefile.am    1970-01-01 
01:00:00.000000000 +0100
@@ -1,21 +0,0 @@
-#
-# Makefile.am for .../testsuite
-#
-# Do not edit this file (Makefile.am) as it will be overwritten!
-#
-
-AUTOMAKE_OPTIONS = dejagnu
-EXTRA_DIST = $(wildcard tests/*.out) $(wildcard tests/*.err) $(wildcard 
tests/*.rb)
-
-testsuite_prepare = @ydatadir@/testsuite/Makefile.testsuite
-
-all-local: $(testsuite_prepare)
-       make -f $(testsuite_prepare) RPMNAME=$(RPMNAME) srcdir=$(srcdir)
-
-clean-local: $(testsuite_prepare)
-       make -f $(testsuite_prepare) RPMNAME=$(RPMNAME) srcdir=$(srcdir) clean
-
-check-local: $(testsuite_prepare)
-       make -f $(testsuite_prepare) RPMNAME=$(RPMNAME) srcdir=$(srcdir) check
-
-# EOF
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-nis-client-4.2.3/testsuite/tests/readwrite.out 
new/yast2-nis-client-4.3.0/testsuite/tests/readwrite.out
--- old/yast2-nis-client-4.2.3/testsuite/tests/readwrite.out    2020-02-24 
16:26:05.000000000 +0100
+++ new/yast2-nis-client-4.3.0/testsuite/tests/readwrite.out    1970-01-01 
01:00:00.000000000 +0100
@@ -1,53 +0,0 @@
-Dump   no policy
-Read   .sysconfig.network.config.NETCONFIG_NIS_POLICY ""
-Dir    .sysconfig.network.config: ["NETCONFIG_NIS_POLICY"]
-Execute        .target.bash_output "/usr/bin/ypdomainname" $["exit":0, 
"stderr":"", "stdout":"mydomain\n"]
-Execute        .target.bash "/usr/bin/ls /var/run/dhcpcd-*.pid" 0
-Read   .sysconfig.ypbind.YPBIND_LOCAL_ONLY "no"
-Read   .sysconfig.ypbind.YPBIND_BROADCAST "no"
-Read   .sysconfig.ypbind.YPBIND_BROKEN_SERVER "no"
-Read   .sysconfig.ypbind.YPBIND_OPTIONS ""
-Read   .etc.nsswitch_conf."hosts" "files dns6"
-Read   .etc.nsswitch_conf."passwd" "compat"
-Read   .etc.nsswitch_conf."passwd_compat" nil
-Read   .target.size "/etc/sysconfig/displaymanager" 0
-Read   .sysconfig.displaymanager.DISPLAYMANAGER_AUTOLOGIN "no"
-Read   .sysconfig.displaymanager.DISPLAYMANAGER_PASSWORD_LESS_LOGIN "no"
-Return true
-Execute        .target.bash "/usr/bin/grep -q '^[+-]' /etc/passwd" 0
-Read   .etc.nsswitch_conf."services" "files"
-Write  .etc.nsswitch_conf."services" "files" true
-Read   .etc.nsswitch_conf."netgroup" "files"
-Write  .etc.nsswitch_conf."netgroup" "files" true
-Read   .etc.nsswitch_conf."aliases" "files"
-Write  .etc.nsswitch_conf."aliases" "files" true
-Write  .etc.nsswitch_conf nil true
-Read   .etc.nsswitch_conf."automount" "files"
-Return true
-Dump   auto policy
-Read   .sysconfig.network.config.NETCONFIG_NIS_POLICY "auto"
-Dir    .sysconfig.network.config: ["NETCONFIG_NIS_POLICY"]
-Execute        .target.bash_output "/usr/bin/ypdomainname" $["exit":0, 
"stderr":"", "stdout":"mydomain\n"]
-Execute        .target.bash "/usr/bin/ls /var/run/dhcpcd-*.pid" 0
-Read   .sysconfig.ypbind.YPBIND_LOCAL_ONLY "no"
-Read   .sysconfig.ypbind.YPBIND_BROADCAST "no"
-Read   .sysconfig.ypbind.YPBIND_BROKEN_SERVER "no"
-Read   .sysconfig.ypbind.YPBIND_OPTIONS ""
-Read   .etc.nsswitch_conf."hosts" "files dns6"
-Read   .etc.nsswitch_conf."passwd" "compat"
-Read   .etc.nsswitch_conf."passwd_compat" nil
-Read   .target.size "/etc/sysconfig/displaymanager" 0
-Read   .sysconfig.displaymanager.DISPLAYMANAGER_AUTOLOGIN "no"
-Read   .sysconfig.displaymanager.DISPLAYMANAGER_PASSWORD_LESS_LOGIN "no"
-Return true
-Return nil
-Execute        .target.bash "/usr/bin/grep -q '^[+-]' /etc/passwd" 0
-Read   .etc.nsswitch_conf."services" "files"
-Write  .etc.nsswitch_conf."services" "files" true
-Read   .etc.nsswitch_conf."netgroup" "files"
-Write  .etc.nsswitch_conf."netgroup" "files" true
-Read   .etc.nsswitch_conf."aliases" "files"
-Write  .etc.nsswitch_conf."aliases" "files" true
-Write  .etc.nsswitch_conf nil true
-Read   .etc.nsswitch_conf."automount" "files"
-Return true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-nis-client-4.2.3/testsuite/tests/readwrite.rb 
new/yast2-nis-client-4.3.0/testsuite/tests/readwrite.rb
--- old/yast2-nis-client-4.2.3/testsuite/tests/readwrite.rb     2020-02-24 
16:26:05.000000000 +0100
+++ new/yast2-nis-client-4.3.0/testsuite/tests/readwrite.rb     1970-01-01 
01:00:00.000000000 +0100
@@ -1,123 +0,0 @@
-# encoding: utf-8
-
-# Module:
-#   NIS client configuration
-#
-# Summary:
-#   Testsuite
-#
-# Authors:
-#   Martin Vidner <mvid...@suse.cz>
-#
-# $Id$
-module Yast
-  class ReadwriteClient < Client
-    def main
-      # testedfiles: Nis.ycp Autologin.ycp Service.ycp Report.ycp 
Testsuite.ycp Nsswitch.ycp
-
-      Yast.include self, "testsuite.rb"
-
-      @READ_INIT = { "target" => { "size" => 0 } }
-      @EXEC_INIT = { "target" => { "bash_output" => {} } }
-
-      TESTSUITE_INIT([@READ_INIT, {}, @EXEC_INIT], nil)
-
-      Yast.import "Pkg" # override
-      Yast.import "Nis"
-
-
-      @READ = {
-        # Runlevel:
-        "init"      => {
-          "scripts" => {
-            "exists"   => true,
-            "runlevel" => {
-              "rpcbind" => { "start" => ["3", "5"], "stop" => ["3", "5"] },
-              "ypbind"  => { "start" => ["3", "5"], "stop" => ["3", "5"] },
-              "autofs"  => { "start" => ["3", "5"], "stop" => ["3", "5"] }
-            },
-            # their contents is not important for ServiceAdjust
-            "comment"  => {
-              "rpcbind" => {},
-              "ypbind"  => {},
-              "autofs"  => {}
-            }
-          }
-        },
-        # Nis itself:
-        "etc"       => {
-          "yp_conf"       => {
-            "servers"          => ["10.20.30.40", "10.20.30.80"],
-            "slp"              => { "slpdomain" => true },
-            "defaultbroadcast" => false,
-            "domainservers"    => { "otherdomain" => ["1.2.3.4"] },
-            "broadcast"        => { "otherdomain" => true }
-          },
-          #        "defaultdomain": "mydomain",
-          "nsswitch_conf" => {
-            "passwd"    => "compat",
-            "group"     => "compat",
-            "hosts"     => "files dns6",
-            "automount" => "files",
-            "services"  => "files",
-            "netgroup"  => "files",
-            "aliases"   => "files"
-          }
-        },
-        "sysconfig" => {
-          "ypbind"         => {
-            "YPBIND_LOCAL_ONLY"    => "no",
-            "YPBIND_BROADCAST"     => "no",
-            "YPBIND_BROKEN_SERVER" => "no",
-            "YPBIND_OPTIONS"       => ""
-          },
-          "network"        => { "config" => { "NETCONFIG_NIS_POLICY" => "" } },
-          "displaymanager" => {
-            "DISPLAYMANAGER"                     => "kdm",
-            "DISPLAYMANAGER_AUTOLOGIN"           => "no",
-            "DISPLAYMANAGER_PASSWORD_LESS_LOGIN" => "no"
-          }
-        },
-        "target"    => {
-          "size" => 0,
-          # FileUtils::Exists
-          "stat" => { 1 => 2 }
-        }
-      }
-
-      @WRITE = {}
-
-      @EXECUTE = {
-        "target" =>
-          # /etc/yp.conf.sv
-          {
-            # ok if used both for `domainname` and `rcypbind start`
-            "bash_output" => {
-              "exit"   => 0,
-              "stdout" => "mydomain\n",
-              "stderr" => ""
-            },
-            "remove"      => true
-          }
-      }
-
-      DUMP("no policy")
-      TEST(lambda { Nis.Read }, [@READ, @WRITE, @EXECUTE], nil)
-      TEST(lambda { Nis.Write }, [@READ, @WRITE, @EXECUTE], nil)
-
-      DUMP("auto policy")
-      Ops.set(
-        @READ,
-        ["sysconfig", "network", "config", "NETCONFIG_NIS_POLICY"],
-        "auto"
-      )
-      TEST(lambda { Nis.Read }, [@READ, @WRITE, @EXECUTE], nil)
-      TEST(lambda { Nis.Touch(true) }, [], nil)
-      TEST(lambda { Nis.Write }, [@READ, @WRITE, @EXECUTE], nil)
-
-      nil
-    end
-  end
-end
-
-Yast::ReadwriteClient.new.main


Reply via email to