Class: Gitlab::QA::Component::Staging
  
  
  
  
  
    - Inherits:
- 
      Object
      
        
          - Object
- Gitlab::QA::Component::Staging
 show all
    - Defined in:
- lib/gitlab/qa/component/staging.rb
 
Defined Under Namespace
  
    
  
    
      Classes: Version
    
  
  
    
      Constant Summary
      collapse
    
    
      
        - ADDRESS =
          
        
- 'https://staging.gitlab.com'
 
- GEO_SECONDARY_ADDRESS =
          
        
- 'https://geo.staging.gitlab.com'
 
      Class Method Summary
      collapse
    
    
  
  
    Class Method Details
    
      
  
  
    .address  ⇒ Object 
  
  
  
  
    | 
41
42
43 | # File 'lib/gitlab/qa/component/staging.rb', line 41
def self.address
  self::ADDRESS
end
 | 
 
    
      
  
  
    .image  ⇒ Object 
  
  
  
  
    | 
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 | # File 'lib/gitlab/qa/component/staging.rb', line 22
def self.image
  
  
  
  
  
  
  
  
  
  
  if Runtime::Env.dev_access_token_variable
    "dev.gitlab.org:5005/gitlab/gitlab-ee/gitlab-ee-qa:#{tag}"
  else
    "registry.gitlab.com/gitlab-org/gitlab/gitlab-ee-qa:#{tag}"
  end
end
 | 
 
    
      
  
  
    .release  ⇒ Object 
  
  
  
  
    | 
14
15
16
17
18
19
20 | # File 'lib/gitlab/qa/component/staging.rb', line 14
def self.release
  QA::Release.new(image)
rescue Support::InvalidResponseError => ex
  warn ex.message
  warn "#{ex.response.code} #{ex.response.message}: #{ex.response.body}"
  exit 1
end
 | 
 
    
      
  
  
    .tag  ⇒ Object 
  
  
  
  
    | 
45
46
47 | # File 'lib/gitlab/qa/component/staging.rb', line 45
def self.tag
  @tag ||= Version.new(address).tag
end
 |