Skip to content

java_certificate resource :remove failsΒ #617

@freakinhippie

Description

@freakinhippie

πŸ—£οΈ Foreword

Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.

πŸ‘» Brief Description

When attempting to use the java_certificate resource's :remove action, the resource fails with the following error:

Caused by NameError: undefined local variable or method `new_reource' for #<#<Class:0x0000000005be6180>:0x0000000005dd1940>
/tmp/kitchen/cache/cookbooks/java/resources/certificate.rb:134:in `block in class_from_file'

πŸ₯ž Cookbook version

8.1.2, latest pulled from github.

πŸ‘©β€πŸ³ Chef-Infra Version

Chef v15.10.12

🎩 Platform details

Running on ubuntu-18.04

Steps To Reproduce

Steps to reproduce the behavior:

java_certificate 'java_certificate_ssl_endpoint' do
  ssl_endpoint 'google.com:443'
end

java_certificate 'java_certificate_ssl_endpoint' do
  action :remove
end

πŸš“ Expected behavior

The certificate should be removed from the keystore, if it exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions