-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find class #395
Comments
exact same issue here. Just to sanity check, I did this:
But when I run
Here are some versions I'm running if that helps: rspec (3.5.0) |
When you run When you run |
I seem to have the MODULE_NAME as expected, but I don't have a .fixtures.yml. Is that a requirement? rspec-puppet-init doesn't seem to add that file, do I need it?
|
@cainj13 maybe
So, you can see how this can be helpful in testing various version of modules as well as specifying specific commit hashes or branches. Could you share the |
@dandunckelman Sure, I can share some code that will reproduce the error for you. Just:
Note sure how a .fixtures.yml would help me for something like this^. Aren't those just for locating referenced modules? |
@cainj13 Thanks. I just ran the list of commands and reproduced the same error. I think there may be an issue w/ I also suspect some weirdness w/ the module being named w/ camel-case (as you can see in the error, it's looking for demoerror, not demoError); although, I'm not sure that's really the issue. Regardless, try the manual setup where the key difference in the
|
@dandunckelman I think you're right, this gave me a clean run:
I'm fairly new to the rspec-puppet world, can you tell my why these diffs are significant/breaking? |
@cainj13 Ultimately, the updated In my case, I use https://github.com/puppetlabs/puppetlabs_spec_helper which helps w/ that and many other things. A bonus from that, that I didn't know until looking now, is that it can parallelize the downloading of dependent modules (correction: it only downloads modules in parallel when they're sourced from repositories). This should speed up my tests in CI. |
@dandunckelman Gotcha. That popped up while I was googling about this - looks like a very promising module, should probably look at what it's got going on. Thanks for the quick responses and the help! |
@cainj13 no problem. I went thru a lot of pain getting my setup to where it is today; so, I'm glad to help. |
The is the module directory.
manifests/init.pp
spec/classes/certs_spec.rb
The text was updated successfully, but these errors were encountered: