Class: Gitlab::QA::Component::MockServer

Inherits:
Base
  • Object
show all
Defined in:
lib/gitlab/qa/component/mock_server.rb

Constant Summary collapse

DOCKER_IMAGE =
"thiht/smocker"
DOCKER_IMAGE_TAG =
"0.18.2"

Instance Attribute Summary collapse

Attributes inherited from Base

#docker, #environment, #network, #ports, #runner_network, #volumes

Instance Method Summary collapse

Methods inherited from Base

#add_network_alias, #hostname, #image, #instance, #ip_address, #prepare, #prepare_docker_container, #prepare_docker_image, #prepare_network, #process_exec_commands, #pull, #restart, #start, #start_instance, #tag, #teardown, #teardown!

Methods included from Scenario::Actable

#act, included

Constructor Details

#initializeMockServer

Returns a new instance of MockServer.



10
11
12
13
14
15
# File 'lib/gitlab/qa/component/mock_server.rb', line 10

def initialize
  super

  @ports = %w[8080 8081]
  @name = "smocker-server"
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



17
18
19
# File 'lib/gitlab/qa/component/mock_server.rb', line 17

def name
  @name
end