Jira (PUP-355) how to run rspec-puppet with lookup a.k.a data in environment/modules

5 views
Skip to first unread message

Henrik Lindberg (JIRA)

unread,
Oct 4, 2016, 7:21:54 PM10/4/16
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
 
Puppet / Improvement PUP-355
how to run rspec-puppet with lookup a.k.a data in environment/modules
Change By: Henrik Lindberg
Summary: how to run rspec-puppet with  lookup a.k.a  data in  environment/  modules
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Henrik Lindberg (JIRA)

unread,
Dec 14, 2016, 3:41:02 PM12/14/16
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Fix Version/s: PUP 4.y
Fix Version/s: PUP 5.0.0

Henrik Lindberg (JIRA)

unread,
Mar 16, 2017, 8:29:02 AM3/16/17
to puppe...@googlegroups.com

Henrik Lindberg (JIRA)

unread,
Apr 5, 2017, 4:28:05 PM4/5/17
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Sprint: PDE 2017-04-05 , PDE 2017-04-19

Lucas Yamanishi (JIRA)

unread,
Apr 11, 2017, 5:50:02 PM4/11/17
to puppe...@googlegroups.com
Lucas Yamanishi commented on Improvement PUP-355
 
Re: how to run rspec-puppet with lookup a.k.a data in environment/modules

I was trying to call lookup() from within my tests so I could loop over the data and generate tests, but it seems that is too complicated to be worth it at his point. For reference, in old-style Hiera, it is possible to do something like this:

require 'hiera'
hiera = Hiera.new(config: 'spec/fixtures/hiera.yaml')
data = hiera.lookup('my_hiera_key', nil, nil)

This still works, of course, but it is limited to global-scope. It would be nice There should be something simple like this for Puppet::Pops::Lookup.lookup, or the steps required to do it should be clearly documented.

Eric Sorenson (JIRA)

unread,
Apr 20, 2017, 8:20:02 PM4/20/17
to puppe...@googlegroups.com

Eric Sorenson (JIRA)

unread,
Apr 20, 2017, 8:21:02 PM4/20/17
to puppe...@googlegroups.com
Eric Sorenson commented on Improvement PUP-355
 
Re: how to run rspec-puppet with lookup a.k.a data in environment/modules

This is a high-priority fix post Puppet 5.0 but I'm removing it as a blocker from the release as we can ship without it.

Eric Sorenson (JIRA)

unread,
Apr 20, 2017, 8:21:02 PM4/20/17
to puppe...@googlegroups.com

John Duarte (JIRA)

unread,
Apr 21, 2017, 11:46:03 AM4/21/17
to puppe...@googlegroups.com

Henrik Lindberg (JIRA)

unread,
Apr 25, 2017, 5:14:05 AM4/25/17
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Sprint: PDE 2017-04-05, PDE 2017-04-19 , PDE 2017-05-03

Henrik Lindberg (JIRA)

unread,
Apr 25, 2017, 5:16:03 AM4/25/17
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Sprint: PDE 2017-04-05, PDE 2017-04-19, PDE 2017-05- 03 17

Henrik Lindberg (JIRA)

unread,
May 2, 2017, 10:28:07 AM5/2/17
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Sprint: PDE 2017-04-05, PDE 2017-04-19, PDE 2017-05- 17 31

Maggie Dreyer (JIRA)

unread,
May 16, 2017, 7:30:06 PM5/16/17
to puppe...@googlegroups.com

Moses Mendoza (JIRA)

unread,
May 18, 2017, 1:54:11 PM5/18/17
to puppe...@googlegroups.com

Henrik Lindberg (JIRA)

unread,
May 31, 2017, 8:12:06 AM5/31/17
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Sprint: PDE  Triage, PDE  2017-04-05, PDE 2017-04-19

Henrik Lindberg (JIRA)

unread,
May 31, 2017, 8:12:07 AM5/31/17
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Sprint: PDE 2017-04-05, PDE 2017-04-19 , PDE 2017-06-07

Henrik Lindberg (JIRA)

unread,
May 31, 2017, 9:01:11 AM5/31/17
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Sprint:
PDE  Triage, PDE  2017-04-05, PDE 2017-04-19

Henrik Lindberg (JIRA)

unread,
May 31, 2017, 9:01:17 AM5/31/17
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Sprint: PDE 2017-04-05,  Forge - To Accept,  PDE 2017-04-19

Henrik Lindberg (JIRA)

unread,
May 31, 2017, 9:09:04 AM5/31/17
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
Change By: Henrik Lindberg
Sprint: PDE 2017-04-05,  Forge - To Accept,  PDE 2017-04-19 , Language Triage

Henrik Lindberg (JIRA)

unread,
Jun 8, 2017, 7:02:03 AM6/8/17
to puppe...@googlegroups.com
Henrik Lindberg commented on Improvement PUP-355
 
Re: how to run rspec-puppet with lookup a.k.a data in environment/modules

A subject that keeps popping up is how to create a LookupContext that can be used to unit test lookup functions.

Right now you can create an instance of a LookupContext even from puppet language, but it has to be done in the context of a lookup() call in progress or there will be gremlins.

David McTavish (Jira)

unread,
Dec 1, 2021, 11:10:03 AM12/1/21
to puppe...@googlegroups.com
David McTavish updated an issue
 
Change By: David McTavish
Labels: final_triage
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Josh Cooper (Jira)

unread,
Dec 3, 2021, 11:29:02 AM12/3/21
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Dec 14, 2021, 7:21:01 PM12/14/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sprint: PDE 2017-04-05, PDE 2017-04-19 , Language Triage
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages