Skip to content
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

Clean up spec tests and pull in JJM 14149 #17 #22

Merged
merged 26 commits into from
Jun 5, 2015
Merged

Conversation

jerearista
Copy link
Contributor

Closes #16

Paul Greenberg and others added 25 commits March 30, 2015 09:12
fixed merged into develop branch
- consolidate fixtures in to 1 file to avoid collisions and convert to
  YAML format.
- Consolidated several test fixtures
- Removed check in tacacs for unsupported 'enable' property
@jerearista jerearista added this to the 1.0.0 milestone May 27, 2015
@@ -40,11 +47,11 @@ def source_interface=(val)

def create
node.api('logging').add_host(resource[:name])
@provider_hash = { name: resource[:name], ensure: :present }
@property_hash = { name: resource[:name], ensure: :present }
Copy link
Contributor

Choose a reason for hiding this comment

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

Why didn't the use of the wrong name break the unit test for the provider?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changing "provider_hash" to "property_hash" fixes the following failure:

  1) Puppet::Type::Syslog_server::ProviderEos resource (instance) methods #create sets ensure to :present
 Failure/Error: expect(provider.ensure).to eq(:present)

   expected: :present
        got: :absent

   (compared using ==)

   Diff:
   @@ -1,2 +1,2 @@
   -:present
   +:absent
 # ./spec/unit/puppet/provider/syslog_server/eos_spec.rb:141:in `block (4 levels) in <top (required)>'

privateip added a commit that referenced this pull request Jun 5, 2015
Clean up spec tests and pull in JJM 14149 #17
@privateip privateip merged commit f88738c into release-1.0 Jun 5, 2015
@privateip privateip deleted the spec-fixup branch June 5, 2015 15:49
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.

3 participants