debian-mirror-gitlab/spec/factories/terraform/state_version.rb

21 lines
589 B
Ruby
Raw Normal View History

2020-11-24 15:15:51 +05:30
# frozen_string_literal: true
FactoryBot.define do
factory :terraform_state_version, class: 'Terraform::StateVersion' do
terraform_state factory: :terraform_state
created_by_user factory: :user
2021-01-29 00:20:46 +05:30
build { association(:ci_build, project: terraform_state.project) }
2020-11-24 15:15:51 +05:30
sequence(:version)
file { fixture_file_upload('spec/fixtures/terraform/terraform.tfstate', 'application/json') }
2021-01-03 14:25:43 +05:30
trait(:checksummed) do
verification_checksum { 'abc' }
end
trait(:checksum_failure) do
verification_failure { 'Could not calculate the checksum' }
end
2020-11-24 15:15:51 +05:30
end
end