Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit 4e53f80

Browse files
selzocreidmit
andcommitted
Fix tests for metadata in manifest-diff endpoint
[Finishes #174432303] Co-authored-by: Chris Selzo <cselzo@pivotal.io> Co-authored-by: Reid Mitchell <rmitchell@pivotal.io>
1 parent 630a159 commit 4e53f80

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

spec/unit/actions/space_diff_manifest_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ module VCAP::CloudController
8383

8484
it 'returns the correct diff' do
8585
expect(subject).to eq([
86-
{ 'op' => 'add', 'path' => '/applications/0/metadata/labels/foo', 'value' => 'bar' },
87-
{ 'op' => 'add', 'path' => '/applications/0/metadata/annotations/baz', 'value' => 'qux' },
86+
{ 'op' => 'add', 'path' => '/applications/0/metadata', 'value' => {
87+
'labels' => { 'foo' => 'bar' },
88+
'annotations' => { 'baz' => 'qux' },
89+
} },
8890
])
8991
end
9092
end
@@ -130,11 +132,9 @@ module VCAP::CloudController
130132
}
131133
]
132134

133-
default_manifest['applications'][0]['metadata'] = [
134-
{
135-
'foo' => 'bar'
136-
}
137-
]
135+
default_manifest['applications'][0]['metadata'] = {
136+
'foo' => 'bar'
137+
}
138138
default_manifest['applications'][0]['sidecars'] = [
139139
{
140140
'foo' => 'bar'

0 commit comments

Comments
 (0)