class StaticProjects # a project has a p4port, @@projects = [] def initialize return if !@@projects.empty? (1..5).each do |i| @@projects << { 'id' => "#{i}", 'name' => "mock project #{i}", 'url' => "http://localhost:3000/projects/#{i}/", 'server' => ENV['P4PORT'] || "perforce:1666", 'P4CHARSET' => ENV['P4CHARSET'] || 'none', 'stream' => "//ManyStreams/stream#{i}" # qaplay has lots of streams } end @@projects << { 'id' => "special", 'name' => "mock project special", 'url' => "http://localhost:3000/projects/special/", 'server' => "perforce:1666", 'P4CHARSET' => ENV['P4CHARSET'] || 'none', 'stream' => "//P4V/main" } end def projects @@projects end end
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 17271 | tjuricek | Remove deprecated Ruby implementation. | ||
//guest/perforce_software/helix-web-services/main/source/helix_web_services/mock_raymond/lib/static_projects.rb | |||||
#1 | 16072 | tjuricek |
Helix Cloud integration for Helix Sync services. This includes a "mock_raymond" rails application for keeping tabs on basic integration with Helix Cloud. We do not test against a live server. See integration history for more details. |
||
//guest/doug_scheirer/helix-web-services/main/source/helix_web_services/mock_raymond/lib/static_projects.rb | |||||
#2 | 16024 | Doug Scheirer | Some cloud spec forking, got the mock_raymond to spin up in cloud testing, split normal vs cloud spec output | ||
#1 | 15853 | Doug Scheirer | mock_raymond missing files |