Project

General

Profile

Revision ebb00443

Added by Andrew Kofink about 5 years ago

Fixes #19718 - Allow import of unpublished CVs

View differences:

test/csv_test_helper.rb
108 108
  end
109 109
end
110 110

  
111
def content_view_delete(name)
112
  org = 'Test Corporation'
113
  id = nil
114
  stdout,stderr = capture {
115
    hammer.run(%W(content-view list --search #{name}))
116
  }
117
  lines = stdout.split("\n")
118
  if lines.length == 5
119
    id = lines[3].split(" ")[0]
120
  end
121

  
122
  if id
123
    stdout,stderr = capture {
124
      hammer.run(%W(content-view remove --id #{id} --organization #{org} --environments Library))
125
    }
126

  
127
    stdout,stderr = capture {
128
      hammer.run(%W(content-view delete --id #{id}))
129
    }
130
  end
131
end
132

  
111 133
require File.join(File.dirname(__FILE__), 'apipie_resource_mock')
112 134
require File.join(File.dirname(__FILE__), 'helpers/command')
113 135
require File.join(File.dirname(__FILE__), 'helpers/resource_disabled')

Also available in: Unified diff