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

(MODULES-9479) Fix nested array merge behavior #593

Merged

Conversation

seanmil
Copy link
Contributor

@seanmil seanmil commented Jul 16, 2019

Fix regression in behavior introduced in the 5.2.0 release
with the fix for MODULES-8287. Restore the behavior where arrays
nested inside hashes will be merged.

seanmil and others added 2 commits July 16, 2019 12:13
Fix regression in behavior introduced in the 5.2.0 release
with the fix for MODULES-8287. Restore the behavior where arrays
nested inside hashes will be merged.
it 'applies the manifest twice with no stderr' do
idempotent_apply(pp)
expect(file("#{@basedir}/file")).to be_file
expect(file("#{@basedir}/file").content).to match '{"one":[1,2]}' || '{"one":[1,2]}\n'
Copy link
Contributor

Choose a reason for hiding this comment

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

could it be expect(file("#{@basedir}/file").content).to match '{"one":[1,2]}\R?' ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

what about .to contain '{"one":[1,2]}' we dont specifically care if the new line is there or not,

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@tphoney tphoney closed this Jul 17, 2019
@tphoney tphoney reopened this Jul 17, 2019
@tphoney
Copy link
Contributor

tphoney commented Jul 17, 2019

apologies for closing the pr, it was to force kick appveyor

@MartyEwings
Copy link
Contributor

[martin.ewings@martin puppetlabs-concat]$ bundle exec rake litmus:acceptance:parallel
┌ [✔] Running against 24 targets.
├──[✔] aubjs7eirul561d.delivery.puppetlabs.net, redhat-5-x86_64
├──[✔] i744sb977vbhqhx.delivery.puppetlabs.net, redhat-6-x86_64
├──[✔] b8qel0fam1uhs0i.delivery.puppetlabs.net, redhat-7-x86_64
├──[✔] vsmrt4cskliany3.delivery.puppetlabs.net, redhat-8-x86_64
├──[✔] bc76jeqm95sn2wi.delivery.puppetlabs.net, centos-5-x86_64
├──[✔] dnrwy9iqcch5epx.delivery.puppetlabs.net, centos-6-x86_64
├──[✔] aey3d9m79b96l8l.delivery.puppetlabs.net, centos-7-x86_64
├──[✔] sa44gtfwwn4jkhz.delivery.puppetlabs.net, oracle-5-x86_64
├──[✔] eajc86s641vk6fa.delivery.puppetlabs.net, oracle-6-x86_64
├──[✔] vmk1w2hr4owpuuw.delivery.puppetlabs.net, oracle-7-x86_64
├──[✔] of203acpk627l9h.delivery.puppetlabs.net, scientific-6-x86_64
├──[✔] cvyvvgjw8b3k4rp.delivery.puppetlabs.net, scientific-7-x86_64
├──[✔] oaonypaz7l4co4j.delivery.puppetlabs.net, debian-8-x86_64
├──[✔] mi1uam0y9iqlxx0.delivery.puppetlabs.net, debian-9-x86_64
├──[✔] u3xz6vudbn48cia.delivery.puppetlabs.net, sles-11-x86_64
├──[✔] yq28k3l8xcae63n.delivery.puppetlabs.net, sles-12-x86_64
├──[✔] bxx65yroo3zjs5b.delivery.puppetlabs.net, sles-15-x86_64
├──[✔] spgn3fg6m0a5mtd.delivery.puppetlabs.net, ubuntu-1404-x86_64
├──[✔] vffhk1fz53zb8qm.delivery.puppetlabs.net, ubuntu-1604-x86_64
├──[✔] tf3uvkv2zprobfb.delivery.puppetlabs.net, ubuntu-1804-x86_64
├──[✔] u241ctkdgv1fomf.delivery.puppetlabs.net, win-2008r2-x86_64
├──[✔] f0jko6c2dwemqhb.delivery.puppetlabs.net, win-2012r2-x86_64
├──[✔] ffvsdj9e71p60bc.delivery.puppetlabs.net, win-2016-x86_64
└──[✔] g1uzc39kgfejb82.delivery.puppetlabs.net, win-10-pro-x86_64

@MartyEwings MartyEwings merged commit 77be68e into puppetlabs:master Jul 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants