goss-org / goss

Quick and Easy server testing/validation
https://goss.rocks
Apache License 2.0
5.5k stars 470 forks source link

Add uid/gid check in file module #883

Closed smutel closed 3 months ago

smutel commented 3 months ago
Checklist

Description of change

Add UID/GID check for file module For my purpose I need to check the uid/gid instead of the owner/group

smutel commented 3 months ago

Thank you to have merged my PR @aelsabbahy. Do you have plan a new release soon ?

aelsabbahy commented 3 months ago

Tried to cut a release today, but running into travis-ci issues with their deploy plugin.

** Updating RubyGems to the latest compatible version for security reasons. **
** If you need an older version, you can downgrade with 'gem update --system OLD_VERSION'. **
dpl.1
Installing deploy dependencies
ERROR:  Error installing dpl-releases:
    multipart-post requires Ruby version >= 2.5.0.
Successfully installed public_suffix-3.0.3
Successfully installed mime-types-data-3.2024.0305
Successfully installed mime-types-3.5.2
/home/travis/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- dpl/provider/releases (LoadError)
    from /home/travis/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /home/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.10.16/lib/dpl/provider.rb:93:in `rescue in block in new'
    from /home/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.10.16/lib/dpl/provider.rb:68:in `block in new'
    from /home/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.10.16/lib/dpl/cli.rb:41:in `fold'
    from /home/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.10.16/lib/dpl/provider.rb:67:in `new'
    from /home/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.10.16/lib/dpl/cli.rb:31:in `run'
    from /home/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.10.16/lib/dpl/cli.rb:7:in `run'
    from /home/travis/.rvm/gems/ruby-2.4.1/gems/dpl-1.10.16/bin/dpl:5:in `<top (required)>'
    from /home/travis/.rvm/gems/ruby-2.4.1/bin/dpl:23:in `load'
    from /home/travis/.rvm/gems/ruby-2.4.1/bin/dpl:23:in `<main>'
failed to deploy

I haven't seen this issue before, I'll dig into it in the coming days, but unfortunately I'm currently blocked on deploying from travis-ci.

smutel commented 3 months ago

Some links related to your issue:

aelsabbahy commented 3 months ago

Fixed by #888

I've released v0.4.6 which includes this change. Apologies for the delay, I'm on paternity leave so not on a computer often.