Skip to content

zFCP refactoring needed for Agama#105

Merged
joseivanlopez merged 3 commits intoyast:masterfrom
joseivanlopez:agama-zfcp
Jun 9, 2023
Merged

zFCP refactoring needed for Agama#105
joseivanlopez merged 3 commits intoyast:masterfrom
joseivanlopez:agama-zfcp

Conversation

@joseivanlopez
Copy link
Copy Markdown
Contributor

@joseivanlopez joseivanlopez commented May 26, 2023

Problem

The ZFCPController module allows managing zFCP devices, but its code mixes UI and zFCP management logic. That makes very diffucult to reuse its functionality from outsize of YaST (e.g., Agama).

Solution

Create a new separate class (Y2S390::ZFCP) which offers the core functionality for managing zFCP devices. The ZFCPController is adapted to delegate running commands to the new class.

The new Y2S390::ZFCP class is also used by Agama in order to provide a zFCP D-Bus API, see agama-project/agama#594.

Testing

  • Adapted and added unit tests.
  • Tested manually with real s390 hardware.

@joseivanlopez joseivanlopez force-pushed the agama-zfcp branch 3 times, most recently from b387aab to 32c8dc2 Compare May 26, 2023 15:27
@coveralls
Copy link
Copy Markdown

coveralls commented Jun 2, 2023

Coverage Status

coverage: 21.815% (+0.6%) from 21.251% when pulling b37db0a on joseivanlopez:agama-zfcp into 6f5e670 on yast:master.

@joseivanlopez joseivanlopez marked this pull request as ready for review June 5, 2023 10:44
@joseivanlopez joseivanlopez changed the title Refactoring needed for Agama zFCP: refactoring needed for Agama Jun 5, 2023
@joseivanlopez joseivanlopez changed the title zFCP: refactoring needed for Agama zFCP refactoring needed for Agama Jun 5, 2023
@joseivanlopez joseivanlopez force-pushed the agama-zfcp branch 3 times, most recently from 86f9b6a to 2f0de83 Compare June 8, 2023 08:24
Copy link
Copy Markdown
Member

@dgdavid dgdavid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Just two silly questions.

@joseivanlopez joseivanlopez merged commit cb55645 into yast:master Jun 9, 2023
@yast-bot
Copy link
Copy Markdown
Contributor

yast-bot commented Jun 9, 2023

✔️ Public Jenkins job #42 successfully finished
✔️ Created OBS submit request #1091788

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants