Commit dc3a41f4 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Fix tests for added default cache key

parent 12752043
...@@ -76,8 +76,18 @@ module Gitlab ...@@ -76,8 +76,18 @@ module Gitlab
end end
def inspect def inspect
val = if leaf? then config else descendants end val = if leaf?
unspecified = if specified? then '' else '(unspecified) ' end config
else
descendants
end
unspecified = if specified?
''
else
'(unspecified) '
end
"#<#{self.class.name} #{unspecified}{#{key}: #{val.inspect}}>" "#<#{self.class.name} #{unspecified}{#{key}: #{val.inspect}}>"
end end
......
...@@ -51,7 +51,7 @@ module Ci ...@@ -51,7 +51,7 @@ module Ci
commands: "pwd\nrspec", commands: "pwd\nrspec",
coverage_regex: nil, coverage_regex: nil,
tag_list: [], tag_list: [],
options: {}, options: { cache: { key: 'default' } },
allow_failure: false, allow_failure: false,
when: "on_success", when: "on_success",
environment: nil, environment: nil,
...@@ -468,7 +468,8 @@ module Ci ...@@ -468,7 +468,8 @@ module Ci
tag_list: [], tag_list: [],
options: { options: {
image: "ruby:2.1", image: "ruby:2.1",
services: ["mysql"] services: ["mysql"],
cache: { key: 'default' }
}, },
allow_failure: false, allow_failure: false,
when: "on_success", when: "on_success",
...@@ -497,7 +498,8 @@ module Ci ...@@ -497,7 +498,8 @@ module Ci
tag_list: [], tag_list: [],
options: { options: {
image: "ruby:2.5", image: "ruby:2.5",
services: ["postgresql"] services: ["postgresql"],
cache: { key: 'default' }
}, },
allow_failure: false, allow_failure: false,
when: "on_success", when: "on_success",
...@@ -738,6 +740,7 @@ module Ci ...@@ -738,6 +740,7 @@ module Ci
options: { options: {
image: "ruby:2.1", image: "ruby:2.1",
services: ["mysql"], services: ["mysql"],
cache: { key: 'default' },
artifacts: { artifacts: {
name: "custom_name", name: "custom_name",
paths: ["logs/", "binaries/"], paths: ["logs/", "binaries/"],
...@@ -947,7 +950,7 @@ module Ci ...@@ -947,7 +950,7 @@ module Ci
commands: "test", commands: "test",
coverage_regex: nil, coverage_regex: nil,
tag_list: [], tag_list: [],
options: {}, options: { cache: { key: 'default' } },
when: "on_success", when: "on_success",
allow_failure: false, allow_failure: false,
environment: nil, environment: nil,
...@@ -993,7 +996,7 @@ module Ci ...@@ -993,7 +996,7 @@ module Ci
commands: "execute-script-for-job", commands: "execute-script-for-job",
coverage_regex: nil, coverage_regex: nil,
tag_list: [], tag_list: [],
options: {}, options: { cache: { key: 'default' } },
when: "on_success", when: "on_success",
allow_failure: false, allow_failure: false,
environment: nil, environment: nil,
...@@ -1006,7 +1009,7 @@ module Ci ...@@ -1006,7 +1009,7 @@ module Ci
commands: "execute-script-for-job", commands: "execute-script-for-job",
coverage_regex: nil, coverage_regex: nil,
tag_list: [], tag_list: [],
options: {}, options: { cache: { key: 'default' } },
when: "on_success", when: "on_success",
allow_failure: false, allow_failure: false,
environment: nil, environment: nil,
......
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