зеркало из https://github.com/github/octofacts.git
Make rubocop happy
This commit is contained in:
Родитель
580b987534
Коммит
2cd79b82af
|
@ -3,7 +3,6 @@ inherit_gem:
|
|||
- config/default.yml
|
||||
|
||||
AllCops:
|
||||
NewCops: enable
|
||||
DisplayCopNames: true
|
||||
|
||||
AllCops:
|
||||
TargetRubyVersion: 2.6
|
||||
|
|
4
Rakefile
4
Rakefile
|
@ -1,9 +1,11 @@
|
|||
#frozen_string_literal: true
|
||||
|
||||
require "rake"
|
||||
require "rspec/core/rake_task"
|
||||
require_relative "rake/gem"
|
||||
|
||||
namespace :octofacts do
|
||||
task :default => [ ":octofacts:spec:octofacts", ":octofacts:spec:octofacts_updater", ":octofacts:spec:octofacts_integration" ] do
|
||||
task default: [":octofacts:spec:octofacts", ":octofacts:spec:octofacts_updater", ":octofacts:spec:octofacts_integration"] do
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "yaml"
|
||||
require "set"
|
||||
|
||||
|
@ -7,7 +8,6 @@ module Octofacts
|
|||
class Index < Base
|
||||
attr_reader :index_path, :fixture_path, :options
|
||||
attr_writer :facts
|
||||
attr_accessor :nodes
|
||||
|
||||
def initialize(args = {})
|
||||
index_path = Octofacts::Util::Config.fetch(:octofacts_index_path, args)
|
||||
|
|
|
@ -8,7 +8,7 @@ describe "test::one" do
|
|||
let(:facts) do
|
||||
{
|
||||
ec2: true,
|
||||
ec2_metadata: { placement: { :"availability-zone" : "us-foo-1a" } },
|
||||
ec2_metadata: { placement: { "availability-zone": "us-foo-1a" } },
|
||||
gid: "root",
|
||||
id: "root"
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ describe "test::one" do
|
|||
end
|
||||
|
||||
context "using straight octofacts from file with manipulation of symbol converted to hash" do
|
||||
let(:facts) { Octofacts.from_file("basic.yaml").replace(:"ec2_metadata::placement::availability-zone" => "us-hats-1a").facts }
|
||||
let(:facts) { Octofacts.from_file("basic.yaml").replace("ec2_metadata::placement::availability-zone": "us-hats-1a").facts }
|
||||
|
||||
it "should contain the file resource" do
|
||||
is_expected.to contain_file("/tmp/system-info.txt").with(
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "spec_helper"
|
||||
|
||||
describe OctofactsUpdater::Service::Base do
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "spec_helper"
|
||||
|
||||
require "ostruct"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "spec_helper"
|
||||
|
||||
require "octocatalog-diff"
|
||||
|
|
Загрузка…
Ссылка в новой задаче