Class: Gitlab::QA::Component::MockServer
- 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
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Base
#airgapped_network, #docker, #environment, #network, #ports, #runner_network, #volumes
Instance Method Summary collapse
-
#initialize ⇒ MockServer
constructor
A new instance of MockServer.
Methods inherited from Base
#add_network_alias, #hostname, #image, #instance, #ip_address, #prepare, #prepare_airgapped_network, #prepare_docker_container, #prepare_docker_image, #prepare_network, #prepare_runner_network, #process_exec_commands, #pull, #restart, #start, #start_instance, #tag, #teardown, #teardown!
Methods included from Scenario::Actable
Constructor Details
#initialize ⇒ MockServer
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
17 18 19 |
# File 'lib/gitlab/qa/component/mock_server.rb', line 17 def name @name end |