Skip to content

(PUP-10640) add github actions workflows on main#8352

Closed
gimmyxd wants to merge 3 commits intomainfrom
PUP-10640_main
Closed

(PUP-10640) add github actions workflows on main#8352
gimmyxd wants to merge 3 commits intomainfrom
PUP-10640_main

Conversation

@gimmyxd
Copy link
Copy Markdown
Contributor

@gimmyxd gimmyxd commented Oct 1, 2020

Note: Travis was testing using jruby-9.2.8.0, but that is not available on GH actions and this is testing using jruby-9.2.9.0

extracted the first commit(dd11e0a) to run on appveyor and travis to make sure it not breaks anything: #8351

the following tests have been updated
- spec/integration/util/windows/adsi_spec.rb:34
  Was making the assumption that `Administrator` user
  is present. Changed to `Guest` since `Administrator`
  is not available in all setups.

- spec/unit/file_system_spec.rb:870
  `Puppet::FileSystem.expand_path` expands relative
  to the drive that Puppet is executed from. The
  expect here was making the assumption that Puppet
  tests are run form `SystemDrive` which is not always
  the case

- spec/unit/provider/exec_spec.rb
  ENV['PATH'] is not correctly handled by Ruby. Use
  Pathname.cleanpath no normalize the path that is
  used in the `exec` resource
@gimmyxd gimmyxd requested review from a team October 1, 2020 13:40
@gimmyxd gimmyxd changed the title (PUP-10640) add github actions workflows (PUP-10640) add github actions workflows on main Oct 1, 2020
@gimmyxd gimmyxd force-pushed the PUP-10640_main branch 2 times, most recently from d7ce0bb to 76a9645 Compare October 1, 2020 14:38
@puppetcla
Copy link
Copy Markdown

CLA signed by all contributors.

describe '.[]' do
it 'should return string attributes as UTF-8' do
administrator = Puppet::Util::Windows::ADSI::User.new('Administrator')
administrator = Puppet::Util::Windows::ADSI::User.new('Guest')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
administrator = Puppet::Util::Windows::ADSI::User.new('Guest')
guest = Puppet::Util::Windows::ADSI::User.new('Guest')

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

added the suggested change in https://github.com/puppetlabs/puppet/pull/8351/files
I was thinking to have that merged first so the tests work on all environments. I'll update this PR after that gets merged

@ciprianbadescu ciprianbadescu requested a review from a team October 2, 2020 10:37
@joshcooper
Copy link
Copy Markdown
Contributor

Sorry that didn't do what I wanted. I'm going to close this, merge master -> main and and rebase your change on that.

@joshcooper joshcooper closed this Oct 2, 2020
@joshcooper joshcooper deleted the PUP-10640_main branch October 2, 2020 19:30
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.

4 participants