Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package yast2-rmt for openSUSE:Factory 
checked in at 2021-05-06 22:53:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-rmt (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-rmt.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-rmt"

Thu May  6 22:53:05 2021 rev:16 rq:891048 version:1.3.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-rmt/yast2-rmt.changes      2020-08-01 
12:33:54.730642956 +0200
+++ /work/SRC/openSUSE:Factory/.yast2-rmt.new.2988/yast2-rmt.changes    
2021-05-06 22:53:38.102500132 +0200
@@ -1,0 +2,7 @@
+Wed Apr  7 06:57:41 UTC 2021 - Josef Reidinger <[email protected]>
+
+- Adapted unit test to recent changes in Yast::Report (related to
+  bsc#1179893).
+- 1.3.3
+
+-------------------------------------------------------------------

Old:
----
  yast2-rmt-1.3.2.tar.bz2

New:
----
  yast2-rmt-1.3.3.tar.bz2

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

Other differences:
------------------
++++++ yast2-rmt.spec ++++++
--- /var/tmp/diff_new_pack.zGIEvU/_old  2021-05-06 22:53:38.434498762 +0200
+++ /var/tmp/diff_new_pack.zGIEvU/_new  2021-05-06 22:53:38.438498746 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package yast2-rmt
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-rmt
-Version:        1.3.2
+Version:        1.3.3
 Release:        0
 BuildArch:      noarch
 

++++++ yast2-rmt-1.3.2.tar.bz2 -> yast2-rmt-1.3.3.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-rmt-1.3.2/.github/workflows/ci.yml 
new/yast2-rmt-1.3.3/.github/workflows/ci.yml
--- old/yast2-rmt-1.3.2/.github/workflows/ci.yml        1970-01-01 
01:00:00.000000000 +0100
+++ new/yast2-rmt-1.3.3/.github/workflows/ci.yml        2021-05-06 
14:59:20.000000000 +0200
@@ -0,0 +1,76 @@
+
+# See 
https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
+
+name: CI
+
+on: [push, pull_request]
+
+jobs:
+  Tests:
+    runs-on: ubuntu-latest
+    container: registry.opensuse.org/yast/head/containers/yast-ruby:latest
+
+    steps:
+
+    - name: Git Checkout
+      uses: actions/checkout@v2
+
+    # just for easier debugging...
+    - name: Inspect Installed Packages
+      run: rpm -qa | sort
+
+    - name: Unit Tests
+      run: rake test:unit
+      # enable code coverage reporting
+      env:
+        COVERAGE: 1
+
+    # send the coverage report to coveralls.io
+    - name: Coveralls Report
+      uses: coverallsapp/github-action@master
+      with:
+        github-token: ${{ secrets.GITHUB_TOKEN }}
+
+  Rubocop:
+    runs-on: ubuntu-latest
+    container: registry.opensuse.org/yast/head/containers/yast-ruby:latest
+
+    steps:
+
+    - name: Git Checkout
+      uses: actions/checkout@v2
+
+    - name: Add SCC Codestyle
+      run: gem install --no-document scc-codestyle -v 0.1.4
+
+    - name: Proper Rubocop Version
+      run: rm /etc/alternatives/rubocop && ln -s 
/usr/lib64/ruby/gems/*/gems/rubocop-0.52.1/bin/rubocop /etc/alternatives/rubocop
+
+    - name: Rubocop
+      run: rubocop
+
+  Package:
+    runs-on: ubuntu-latest
+    container: registry.opensuse.org/yast/head/containers/yast-ruby:latest
+
+    steps:
+
+    - name: Git Checkout
+      uses: actions/checkout@v2
+
+    - name: Package Build
+      run: yast-ci-ruby -o package
+
+  # downloading the Docker image takes some time so bundling several fast
+  # checks into one job avoids that overhead
+  Checks:
+    runs-on: ubuntu-latest
+    container: registry.opensuse.org/yast/head/containers/yast-ruby:latest
+
+    steps:
+
+    - name: Git Checkout
+      uses: actions/checkout@v2
+
+    - name: POT Check
+      run: rake check:pot
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-rmt-1.3.2/.travis.yml 
new/yast2-rmt-1.3.3/.travis.yml
--- old/yast2-rmt-1.3.2/.travis.yml     2020-07-28 15:50:15.000000000 +0200
+++ new/yast2-rmt-1.3.3/.travis.yml     1970-01-01 01:00:00.000000000 +0100
@@ -1,14 +0,0 @@
-sudo: required
-language: bash
-services:
-  - docker
-
-before_install:
-  - docker build -t yast-rmt-image .
-    # list the installed packages (just for easier debugging)
-  - docker run --rm -it yast-rmt-image rpm -qa | sort
-
-script:
-  # the "yast-travis-ruby" script is included in the base yastdevel/ruby image
-  # see https://github.com/yast/docker-yast-ruby/blob/master/yast-travis-ruby
-  - docker run -it -e COVERAGE=1 -e TRAVIS=1 -e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" 
yast-rmt-image yast-travis-ruby
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-rmt-1.3.2/Dockerfile 
new/yast2-rmt-1.3.3/Dockerfile
--- old/yast2-rmt-1.3.2/Dockerfile      2020-07-28 15:50:15.000000000 +0200
+++ new/yast2-rmt-1.3.3/Dockerfile      1970-01-01 01:00:00.000000000 +0100
@@ -1,4 +0,0 @@
-FROM yastdevel/ruby:sle15
-RUN gem install --no-rdoc --no-ri scc-codestyle -v 0.1.4
-RUN rm /etc/alternatives/rubocop && ln -s 
/usr/lib64/ruby/gems/2.5.0/gems/rubocop-0.52.1/bin/rubocop 
/etc/alternatives/rubocop
-COPY . /usr/src/app
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-rmt-1.3.2/README.md 
new/yast2-rmt-1.3.3/README.md
--- old/yast2-rmt-1.3.2/README.md       2020-07-28 15:50:15.000000000 +0200
+++ new/yast2-rmt-1.3.3/README.md       2021-05-06 14:59:20.000000000 +0200
@@ -1,7 +1,8 @@
 # yast2-rmt
 
+[![Workflow 
Status](https://github.com/yast/yast-rmt/workflows/CI/badge.svg?branch=master)](
+https://github.com/yast/yast-rmt/actions?query=branch%3Amaster)
 [![Coverage 
Status](https://coveralls.io/repos/github/SUSE/yast2-rmt/badge.svg?branch=master)](https://coveralls.io/github/SUSE/yast2-rmt?branch=master)
-[![Build 
Status](https://travis-ci.org/SUSE/yast2-rmt.svg?branch=master)](https://travis-ci.org/SUSE/yast2-rmt)
 
[![Maintainability](https://api.codeclimate.com/v1/badges/672b5ba57176d8b4be53/maintainability)](https://codeclimate.com/github/SUSE/yast2-rmt/maintainability)
 
 Provides the YaST module to configure the Repository Mirroring Tool 
([RMT](https://github.com/SUSE/rmt)) Server.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-rmt-1.3.2/package/yast2-rmt.changes 
new/yast2-rmt-1.3.3/package/yast2-rmt.changes
--- old/yast2-rmt-1.3.2/package/yast2-rmt.changes       2020-07-28 
15:50:15.000000000 +0200
+++ new/yast2-rmt-1.3.3/package/yast2-rmt.changes       2021-05-06 
14:59:20.000000000 +0200
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Wed Apr  7 06:57:41 UTC 2021 - Josef Reidinger <[email protected]>
+
+- Adapted unit test to recent changes in Yast::Report (related to
+  bsc#1179893).
+- 1.3.3
+
+-------------------------------------------------------------------
 Mon Jun  8 14:48:42 UTC 2020 - Jes??s Berm??dez Vel??zquez <[email protected]>
 
 - Version 1.3.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-rmt-1.3.2/package/yast2-rmt.spec 
new/yast2-rmt-1.3.3/package/yast2-rmt.spec
--- old/yast2-rmt-1.3.2/package/yast2-rmt.spec  2020-07-28 15:50:15.000000000 
+0200
+++ new/yast2-rmt-1.3.3/package/yast2-rmt.spec  2021-05-06 14:59:20.000000000 
+0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-rmt
-Version:        1.3.2
+Version:        1.3.3
 Release:        0
 BuildArch:      noarch
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-rmt-1.3.2/spec/rmt/wizard_maria_db_page_spec.rb 
new/yast2-rmt-1.3.3/spec/rmt/wizard_maria_db_page_spec.rb
--- old/yast2-rmt-1.3.2/spec/rmt/wizard_maria_db_page_spec.rb   2020-07-28 
15:50:15.000000000 +0200
+++ new/yast2-rmt-1.3.3/spec/rmt/wizard_maria_db_page_spec.rb   2021-05-06 
14:59:20.000000000 +0200
@@ -105,6 +105,7 @@
       it 'new password must not be empty' do
         expect(new_password_dialog_double).to receive(:run).and_return('')
         expect(mariadb_page).not_to receive(:finish_dialog)
+        expect(Yast::Report).to receive(:Error).with('Setting new database 
root password failed.')
         mariadb_page.next_handler
       end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-rmt-1.3.2/spec/rmt/wizard_scc_page_spec.rb 
new/yast2-rmt-1.3.3/spec/rmt/wizard_scc_page_spec.rb
--- old/yast2-rmt-1.3.2/spec/rmt/wizard_scc_page_spec.rb        2020-07-28 
15:50:15.000000000 +0200
+++ new/yast2-rmt-1.3.3/spec/rmt/wizard_scc_page_spec.rb        2021-05-06 
14:59:20.000000000 +0200
@@ -67,9 +67,10 @@
     end
 
     context 'when ignore continue is clicked' do
-      it 'stays on the same page' do
+      it 'goes to the next page' do
         expect(Yast::Popup).to 
receive(:AnyQuestion).with(*popup_params).and_return(true)
         expect(scc_page).to receive(:finish_dialog).with(:next)
+        expect(RMT::Utils).to receive(:write_config_file).with(config)
         scc_page.skip_handler
       end
     end
@@ -95,6 +96,7 @@
       it 'goes to the next page' do
         expect(scc_page).to receive(:scc_credentials_valid?).and_return(false)
         expect(Yast::Popup).to receive(:AnyQuestion).and_return(true)
+        expect(RMT::Utils).to receive(:write_config_file).with(config)
         expect(scc_page).to receive(:finish_dialog).with(:next)
         scc_page.next_handler
       end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-rmt-1.3.2/spec/rmt/wizard_ssl_page_spec.rb 
new/yast2-rmt-1.3.3/spec/rmt/wizard_ssl_page_spec.rb
--- old/yast2-rmt-1.3.2/spec/rmt/wizard_ssl_page_spec.rb        2020-07-28 
15:50:15.000000000 +0200
+++ new/yast2-rmt-1.3.3/spec/rmt/wizard_ssl_page_spec.rb        2021-05-06 
14:59:20.000000000 +0200
@@ -122,7 +122,7 @@
         expect(RMT::SSL::NewCaPasswordDialog).to 
receive(:new).and_return(new_ca_password_dialog_double)
         expect(new_ca_password_dialog_double).to receive(:run).and_return(nil)
         expect(generator_double).not_to receive(:generate)
-        expect(Yast::Popup).to receive(:Error).with('CA password not provided, 
skipping SSL keys generation.')
+        expect(Yast::Report).to receive(:Error).with('CA password not 
provided, skipping SSL keys generation.')
 
         expect(ssl_page).to receive(:finish_dialog).with(:next)
         ssl_page.next_handler
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-rmt-1.3.2/spec/spec_helper.rb 
new/yast2-rmt-1.3.3/spec/spec_helper.rb
--- old/yast2-rmt-1.3.2/spec/spec_helper.rb     2020-07-28 15:50:15.000000000 
+0200
+++ new/yast2-rmt-1.3.3/spec/spec_helper.rb     2021-05-06 14:59:20.000000000 
+0200
@@ -23,22 +23,41 @@
 
 ENV['Y2DIR'] = File.expand_path('../../src', __FILE__)
 
-srcdir = File.expand_path('../../src', __FILE__)
+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 '/spec/'
-    add_filter '/clients/'
-    track_files("#{srcdir}/**/*.rb")
+    add_filter '/test/'
   end
 
-  # use coveralls for on-line code coverage reporting at Travis CI
-  if ENV['TRAVIS']
-    require 'coveralls'
-    SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
+  src_location = File.expand_path('../src', __dir__)
+  # track all ruby files under src
+  SimpleCov.track_files(src_location + '/**/*.rb')
+
+  # additionally use the LCOV format for on-line code coverage reporting at CI
+  if ENV['CI'] || ENV['COVERAGE_LCOV']
+    require 'simplecov-lcov'
+
+    SimpleCov::Formatter::LcovFormatter.config do |c|
+      c.report_with_single_file = true
+      # this is the default Coveralls GitHub Action location
+      # https://github.com/marketplace/actions/coveralls-github-action
+      c.single_report_path = 'coverage/lcov.info'
+    end
+
+    SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
       SimpleCov::Formatter::HTMLFormatter,
-      Coveralls::SimpleCov::Formatter
-    ])
+      SimpleCov::Formatter::LcovFormatter
+    ]
   end
 end

Reply via email to