cem_acpt 0.9.5 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3caeca8eefaa722fb3f2b126570d888cec011b7ef7c97850219486b646db49a
4
- data.tar.gz: 4075e373ba284d3c3863570a44d7f76f80ffa43eef6af68acf7b2f96d7199b8b
3
+ metadata.gz: effc49c862d39a278026a2fbda70959a6b17bfd9346c826261b47f79949c0e01
4
+ data.tar.gz: 391e8f39502a334c5419a7b84a64e7c66eb16c364a92dddf3de51bb824d5371a
5
5
  SHA512:
6
- metadata.gz: 45ec95cf86daa94b407d08b72abd0e256dd15473e3ac7025f8fa1f6e413b396a3487f7442101c4802ffda35d8e0cd80c77561b010f5b3e8b5a31841472258605
7
- data.tar.gz: 81a26af76dab53b8c53a758044b292da98165c95c8c1be7194c26d023ace94696bfc40a3b402f8c302812191d83c3e060c7884a1ec9fa89a8327ab358091a37e
6
+ metadata.gz: a54d53b0f2c910b3fac6776c7c1d7e13ff041d5ca4694335bce8ee0bbd23c843d66329fed98622ba7e7de682d0892b7bd019f4507413674deaaa953add629f86
7
+ data.tar.gz: 2a6c6028331ec393b8a620fe44406889f17eff48f0cd0ccfd37f4abb3f9512f81e91720130573300b31e950511e7416ca532a28d6d46b40adeb6cf3ecb2a8e5c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cem_acpt (0.9.5)
4
+ cem_acpt (0.10.1)
5
5
  async-http (>= 0.60, < 0.70)
6
6
  bcrypt_pbkdf (>= 1.0, < 2.0)
7
7
  deep_merge (>= 1.2, < 2.0)
@@ -145,7 +145,7 @@ module CemAcpt
145
145
 
146
146
  attr_reader(:duration, :err, :expected, :found, :human, :meta, :property,
147
147
  :resource_id, :resource_type, :result, :skipped, :successful,
148
- :summary_line, :test_type, :title)
148
+ :summary_line, :summary_line_compact, :test_type, :title)
149
149
 
150
150
  def initialize(raw_result)
151
151
  @raw_result = raw_result
@@ -162,6 +162,7 @@ module CemAcpt
162
162
  @skipped = @raw_result['skipped']
163
163
  @successful = @raw_result['successful']
164
164
  @summary_line = @raw_result['summary-line']
165
+ @summary_line_compact = @raw_result['summary-line-compact']
165
166
  @test_type = @raw_result['test-type']
166
167
  @title = @raw_result['title']
167
168
  end
@@ -13,7 +13,10 @@ module CemAcpt
13
13
 
14
14
  def results(response = nil)
15
15
  super(response)
16
- [log_subject.summary, log_subject.results.join("\n")]
16
+ result_strings = log_subject.results.reject { |r| r.success? || r.skipped? }.map do |r|
17
+ r.summary_line_compact
18
+ end
19
+ [log_subject.summary, result_strings.join("\n")]
17
20
  end
18
21
 
19
22
  def host_name(response = nil)
@@ -188,7 +188,7 @@ module CemAcpt
188
188
  @run_data[:nodes] = new_node_data
189
189
  logger.verbose('CemAcpt::TestRunner') { "Initial run data:\n#{@run_data}" }
190
190
  logger.info('CemAcpt::TestRunner') { 'Created initial run data...' }
191
- setup_bolt
191
+ setup_bolt if CemAcpt::Actions.config.action_names.include?('bolt')
192
192
  end
193
193
 
194
194
  def setup_bolt
@@ -357,6 +357,7 @@ module CemAcpt
357
357
  def log_action_test_result(result)
358
358
  logger.info { result.log_formatter.summary }
359
359
  result.log_formatter.results.each do |r|
360
+ r = r.to_s
360
361
  if r.start_with?('Passed:')
361
362
  logger.verbose { r }
362
363
  elsif r.start_with?('Skipped:')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CemAcpt
4
- VERSION = '0.9.5'
4
+ VERSION = '0.10.1'
5
5
  end
@@ -1,8 +1,8 @@
1
1
  terraform {
2
2
  required_providers {
3
- google = {
4
- source = "hashicorp/google"
5
- version = "4.59.0"
3
+ google-beta = {
4
+ source = "hashicorp/google-beta"
5
+ version = "5.23.0"
6
6
  }
7
7
  }
8
8
  }
@@ -1,8 +1,8 @@
1
1
  terraform {
2
2
  required_providers {
3
- google = {
4
- source = "hashicorp/google"
5
- version = "4.59.0"
3
+ google-beta = {
4
+ source = "hashicorp/google-beta"
5
+ version = "5.23.0"
6
6
  }
7
7
  }
8
8
  }
@@ -1,8 +1,8 @@
1
1
  terraform {
2
2
  required_providers {
3
- google = {
4
- source = "hashicorp/google"
5
- version = "4.59.0"
3
+ google-beta = {
4
+ source = "hashicorp/google-beta"
5
+ version = "5.23.0"
6
6
  }
7
7
  }
8
8
  }
@@ -50,7 +50,7 @@ variable "node_data" {
50
50
  }))
51
51
  }
52
52
 
53
- provider "google" {
53
+ provider "google-beta" {
54
54
  credentials = file(var.credentials_file)
55
55
  project = var.project
56
56
  region = var.region
@@ -58,7 +58,7 @@ provider "google" {
58
58
  }
59
59
 
60
60
  resource "google_compute_instance" "acpt-test-node" {
61
- provider = google
61
+ provider = google-beta
62
62
  for_each = var.node_data
63
63
  name = each.key
64
64
  machine_type = each.value.machine_type
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cem_acpt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - puppetlabs
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-26 00:00:00.000000000 Z
11
+ date: 2024-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http
@@ -313,7 +313,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
313
313
  - !ruby/object:Gem::Version
314
314
  version: '0'
315
315
  requirements: []
316
- rubygems_version: 3.4.22
316
+ rubygems_version: 3.4.19
317
317
  signing_key:
318
318
  specification_version: 4
319
319
  summary: CEM Acceptance Tests