Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: goss-org/goss
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.4.1
Choose a base ref
...
head repository: goss-org/goss
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.4.2
Choose a head ref
  • 4 commits
  • 55 files changed
  • 1 contributor

Commits on Sep 14, 2023

  1. Added ctx object to all system struct's constructors (#837)

    * Added ctx object to all system struct's constructors
    
    The idea behind this commit is to set the stage for adding aditional
    logging metadata.
    
    * Changed: Improved logging
    
    * Added new flags `--log-level` and `-l` to be consistent with other goss
    flags.
      * `--loglevel` and `-L` will be deprecated in a future release
    * Log level accepts any casing, so DEBUG and debug are both valid cli opts
    * Add log level support for `add` and `autoadd` commands
    
    * Changed log time format to RFC3339
    aelsabbahy authored Sep 14, 2023
    Configuration menu
    Copy the full SHA
    e6c727d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b98798e View commit details
    Browse the repository at this point in the history
  3. Fix json (#841)

    * Added ctx object to all system struct's constructors
    
    The idea behind this commit is to set the stage for adding aditional
    logging metadata.
    
    * Changed: Improved logging
    
    * Added new flags `--log-level` and `-l` to be consistent with other goss
    flags.
      * `--loglevel` and `-L` will be deprecated in a future release
    * Log level accepts any casing, so DEBUG and debug are both valid cli opts
    * Add log level support for `add` and `autoadd` commands
    
    * Changed log time format to RFC3339
    
    * Fixed: json result[].successful to match goss 3.X behavior
    
    fixes #840
    aelsabbahy authored Sep 14, 2023
    Configuration menu
    Copy the full SHA
    b1ffb25 View commit details
    Browse the repository at this point in the history
  4. Command empty strings (#839)

    * Added ctx object to all system struct's constructors
    
    The idea behind this commit is to set the stage for adding aditional
    logging metadata.
    
    * Changed: Improved logging
    
    * Added new flags `--log-level` and `-l` to be consistent with other goss
    flags.
      * `--loglevel` and `-L` will be deprecated in a future release
    * Log level accepts any casing, so DEBUG and debug are both valid cli opts
    * Add log level support for `add` and `autoadd` commands
    
    * Changed: Goss add command default to empty string
    
    Changed the behavior of `goss add` on a command, if the value of stdout or stderr is
    empty, it will be defaulted to an empty string instead of an empty
    array. The behavior remains unchanged when there is output; the value
    will be an array.
    
    This approach provides the following benefits:
    * Tests will fail if an empty string receives a value.
    * Arrays allows for simpler deletion of lines that are not relevant
    to the test assertion.
    
    closes #820
    
    * fix build error
    aelsabbahy authored Sep 14, 2023
    Configuration menu
    Copy the full SHA
    b30f3fa View commit details
    Browse the repository at this point in the history
Loading