Commit bbd734e8 authored by Can Eldem's avatar Can Eldem Committed by Michael Kozono

Fix create isssue for container scanning from dashboard issue

Add tests for checking diffent type of array
parent c9791d39
---
title: Fix create issue for container scanning from security dashboard
merge_request: 16226
author:
type: fixed
...@@ -6,7 +6,7 @@ module Gitlab ...@@ -6,7 +6,7 @@ module Gitlab
attr_reader :data attr_reader :data
def initialize(data) def initialize(data)
@data = data @data = data.deep_symbolize_keys
end end
# Ensure mandatory properties are defined # Ensure mandatory properties are defined
......
...@@ -15,7 +15,7 @@ describe Gitlab::Vulnerabilities::ContainerScanningVulnerability do ...@@ -15,7 +15,7 @@ describe Gitlab::Vulnerabilities::ContainerScanningVulnerability do
confidence: 'low', confidence: 'low',
identifiers: '42', identifiers: '42',
links: 'link' links: 'link'
} }.with_indifferent_access
end end
describe 'getters' do describe 'getters' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment