GithubHelp home page GithubHelp logo

Comments (10)

mcanevet avatar mcanevet commented on August 18, 2024

Hmmm, I changed to script that generates the facts to use the ruby provided by puppet AIO package instead off all the mess here: e9e7dc7

So the problem is that rubysitedir is not the one you expect?

from facterdb.

domcleal avatar domcleal commented on August 18, 2024

So the problem is that rubysitedir is not the one you expect?

Yes, I suppose it simply came as a surprise to see it change for that OS on pre-existing tests. Now I think about it more, that's inevitable as AIO becomes the standard and you update the facts for the OS. As you add a new set of facts for a new facterversion, what's returned by r-p-f will change.

I wonder if it's feasible to not ever refresh facts (esp between non-AIO and AIO) for a given facterversion once it's been released in facterdb?

We probably ought to simply stub/merge the facts we expect in the specs better either way.

from facterdb.

mcanevet avatar mcanevet commented on August 18, 2024

Isn't it possible to populate it at runtime in rspec-puppet-facts like I do for augeasversion, rubyversion and puppetversion https://github.com/mcanevet/rspec-puppet-facts/blob/master/lib/rspec-puppet-facts.rb#L45-L49?

from facterdb.

mcanevet avatar mcanevet commented on August 18, 2024

@domcleal what do you think of that voxpupuli/rspec-puppet-facts#19 ?

from facterdb.

domcleal avatar domcleal commented on August 18, 2024

I don't think overwriting it from r-p-f is going to help much, since it's probably just going to change it to an RVM path or something about where the tests are run rather than the Puppet/Facter packages that were used.

Let me close this issue because I think we need to do it via merging/stubbing of the facts in our test. I'm not sure that we can assume which type of packages these facts use.

from facterdb.

ekohl avatar ekohl commented on August 18, 2024

@mcanevet maybe a more generic override framework would also solve voxpupuli/rspec-puppet-facts#14

from facterdb.

mcanevet avatar mcanevet commented on August 18, 2024

@ekohl I'm not sur how to implement this, but PR welcome :-)
@domcleal I release rspec-puppet-facts 1.3.0 that dynamically set rubysitedir, does it solve your problem?

from facterdb.

domcleal avatar domcleal commented on August 18, 2024

@mcanevet yes it does, thank you. I'm still not sure that we should be relying on it, as I suspect it's now setting the rubysitedir to /home/dcleal/.rvm rather than either /usr/lib or /opt/puppetlabs, but it is fixing the tests.

from facterdb.

ekohl avatar ekohl commented on August 18, 2024

@mcanevet what would be the correct place to discuss the issue? I'm quite sure it's not here :)

from facterdb.

mcanevet avatar mcanevet commented on August 18, 2024

@ekohl probably here voxpupuli/rspec-puppet-facts#14

from facterdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.