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

Use some unique task names for windows_task functional tests #7267

Merged
merged 1 commit into from
May 16, 2018

Conversation

btm
Copy link
Contributor

@btm btm commented May 16, 2018

The 2008r2 tester has been failing with an error like:

  1) Chef::Resource::WindowsTask action :enable enables the disabled task
     Failure/Error: expect(current_resource.task.status).to eq("not scheduled")

       expected: "not scheduled"
            got: "running"

       (compared using ==)
     # ./spec/functional/resource/windows_task_spec.rb:1481:in `block (3 levels) in <top (required)>'

This has only been happening on the enable and disable tests and appears to be a timing issue. This change gives thoses tests unique names and changes the default name to not be 'chef-client' which is more likely to collide with another test.

This change has passed chef-test on jenkins in an ad-hoc test.

The 2008r2 tester has been failing with an error like:

```
  1) Chef::Resource::WindowsTask action :enable enables the disabled task
     Failure/Error: expect(current_resource.task.status).to eq("not scheduled")

       expected: "not scheduled"
            got: "running"

       (compared using ==)
     # ./spec/functional/resource/windows_task_spec.rb:1481:in `block (3 levels) in <top (required)>'
```

This has only been happening on the enable and disable tests and appears to be a timing issue. This change gives thoses tests unique names and changes the default name to not be 'chef-client' which is more likely to collide with another test.

This change has passed chef-test on jenkins in an ad-hoc test.

Signed-off-by: Bryan McLellan <btm@loftninjas.org>
@btm btm requested a review from a team May 16, 2018 03:46
@btm btm merged commit 889c0dc into master May 16, 2018
@btm btm deleted the btm/windows_task_functional_test branch May 16, 2018 04:18
@lock
Copy link

lock bot commented Jul 15, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants