Coder Social home page Coder Social logo

Again whitespaces about molecule HOT 3 CLOSED

ansible avatar ansible commented on July 17, 2024
Again whitespaces

from molecule.

Comments (3)

identifystation avatar identifystation commented on July 17, 2024

@rokka-n Do you have the same behavior with 1.4.1? I know your comment on another issue said you did, but I'm unable to reproduce it.

▶ molecule init foo
Successfully initialized new role in ./foo

▶ cd foo

▶ molecule test
Bringing machine 'foo-01' up with 'virtualbox' provider...
==> foo-01: Importing base box 'trusty64'...
==> foo-01: Matching MAC address for NAT networking...
...

PLAY [all] ********************************************************************

GATHERING FACTS ***************************************************************
ok: [foo-01]

PLAY RECAP ********************************************************************
foo-01                     : ok=1    changed=0    unreachable=0    failed=0

Idempotence test in progress (can take a few minutes)...
Idempotence test passed.

No testinfra tests found in tests/.

Executing rubocop on *.rb files found in spec/.
Inspecting 2 files
..

2 files inspected, no offenses detected

Executing serverspec tests found in spec/.
*** Run serverspec on foo-01 instance ***
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -I/Library/Ruby/Gems/2.0.0/gems/rspec-support-3.3.0/lib:/Library/Ruby/Gems/2.0.0/gems/rspec-core-3.3.2/lib /Library/Ruby/Gems/2.0.0/gems/rspec-core-3.3.2/exe/rspec --pattern spec/\*_spec.rb,spec/foo-01/\*_spec.rb,spec/hosts/foo-01/\*_spec.rb,spec/group_1/\*_spec.rb,spec/groups/group_1/\*_spec.rb,spec/group_2/\*_spec.rb,spec/groups/group_2/\*_spec.rb

File "/etc/hosts"
  should be a file
  should be owned by "root"
  should be grouped into "root"

Finished in 0.35853 seconds (files took 0.39658 seconds to load)
3 examples, 0 failures


==> foo-01: Forcing shutdown of VM...
==> foo-01: Destroying VM and associated drives...


▶ molecule --version
1.4.1

▶ uname -a
Darwin splashdown.local 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64

from molecule.

rokka-n avatar rokka-n commented on July 17, 2024

That's correct, just upgraded in venv to 1.4.1 and now init subcommand generates setup without any warnings and all tests are passing.

However, if whitespace is added accidentally:

Trailing whitespace found in ./defaults/main.yml on lines: 2

It looks like a warning, it doesn't stop the test.
It would be nice to have this as an optional feature, and by default just ignore whitespaces.

from molecule.

retr0h avatar retr0h commented on July 17, 2024

It would be nice to have this as an optional feature, and by default just ignore whitespaces.

@rokka-n not going to happen.

from molecule.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.