dkdeploy-typo3-cms 7.0.0 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +3 -0
  3. data/.rubocop.yml +8 -0
  4. data/.travis.yml +3 -2
  5. data/Berksfile.lock +33 -41
  6. data/CHANGELOG.md +18 -0
  7. data/LICENSE +1 -1
  8. data/README.md +5 -5
  9. data/Vagrantfile +7 -14
  10. data/config/vm/cookbooks/dkdeploy-typo3-cms/metadata.rb +3 -3
  11. data/config/vm/cookbooks/dkdeploy-typo3-cms/recipes/default.rb +3 -3
  12. data/dkdeploy-typo3-cms.gemspec +10 -8
  13. data/features/cli.feature +24 -33
  14. data/features/step_definitions/mysql.rb +6 -4
  15. data/features/step_definitions/typo3.rb +1 -5
  16. data/features/support/env.rb +8 -1
  17. data/features/typo3.feature +38 -1
  18. data/lib/capistrano/dkdeploy/typo3_cms.rb +60 -3
  19. data/lib/dkdeploy/typo3/cms/helpers/cli.rb +4 -4
  20. data/lib/dkdeploy/typo3/cms/helpers/mysql.rb +26 -0
  21. data/lib/dkdeploy/typo3/cms/tasks/cache.rake +1 -1
  22. data/lib/dkdeploy/typo3/cms/tasks/caretaker_key_management.rake +1 -1
  23. data/lib/dkdeploy/typo3/cms/tasks/cli.rake +0 -18
  24. data/lib/dkdeploy/typo3/cms/tasks/typo3.rake +19 -11
  25. data/lib/dkdeploy/typo3/cms/version.rb +1 -1
  26. data/spec/fixtures/application/config/deploy.rb +5 -0
  27. data/spec/fixtures/application/config/deploy/dev.rb +4 -4
  28. data/spec/fixtures/application/htdocs/catalog/variable_injection_test.phpsh +2 -0
  29. data/spec/fixtures/application/htdocs/composer.json +3 -3
  30. data/spec/fixtures/application/htdocs/composer.lock +1888 -0
  31. data/spec/fixtures/application/htdocs/typo3conf/LocalConfiguration.php +1 -0
  32. data/spec/fixtures/capistrano/configuration/additional_configuration_for_server.rb +1 -1
  33. data/spec/fixtures/capistrano/configuration/cli_test_tasks_variable_injection.rb +5 -0
  34. data/spec/fixtures/capistrano/configuration/cli_test_tasks_with_path.rb +6 -0
  35. metadata +65 -18
  36. data/spec/fixtures/application/htdocs/typo3/cli_dispatch.phpsh +0 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: de0fa1b1b6b17b993e5bbfc00f3643bec583ff2e
4
- data.tar.gz: 8d29b7c6262f3e8fb3862d9a74996844da44ebab
2
+ SHA256:
3
+ metadata.gz: 7defac31faba874ad1097f02cf2efdff64ee38d617731118d8b3b6e7ddc38bfa
4
+ data.tar.gz: 39178bc80f3b08415018519268cadb83b5e2cab9f0ad3c49034b1b4b29bf3594
5
5
  SHA512:
6
- metadata.gz: c77f61659eb8293abdcfd73f7a157b4ef366a4b48822e0cc977b055797915ea9bd733106f7d49c3e651bd9e1cf8fce19d488ce0b0f84d843acec19fc43884689
7
- data.tar.gz: 336eef634bf69f19cc13d488f3020ef7445a48c0f80d9d596a0c507314d4b732ea5a2757b96ece0516d7147dc883ed722e58508fe57987998d2bc4de45760ec8
6
+ metadata.gz: ea8c4f80306702cbb608c1d35a59363a6b208adc351b68d39eeaa349b485efb9859dc2f22197559c96a1b70f7574336178df83936a53c72a36ee78a522463941
7
+ data.tar.gz: 4f7489984fbb4430fe5e92a01339598e69163c12481deee9debbc5004067b5b98e022623e7614f763432317a3b6b4f3aa828e9b3c4ee046e082727284493bd7a
data/.gitignore CHANGED
@@ -18,3 +18,6 @@ tmp
18
18
  .vagrant
19
19
  .lock
20
20
  Gemfile.lock
21
+ ubuntu-xenial-16.04-cloudimg-console.log
22
+
23
+
data/.rubocop.yml CHANGED
@@ -5,6 +5,10 @@ AllCops:
5
5
  - 'config/**/*'
6
6
  - 'Vagrantfile'
7
7
  - 'vendor/**/*'
8
+ TargetRubyVersion: 2.2
9
+ ExtraDetails: true
10
+ DisplayStyleGuide: true
11
+ DisplayCopNames: true
8
12
  GlobalVars:
9
13
  AllowedVariables: []
10
14
  MethodLength:
@@ -21,3 +25,7 @@ AbcSize:
21
25
  Max: 25
22
26
  SpaceAfterComma:
23
27
  Enabled: false
28
+ Style/FormatStringToken:
29
+ Enabled: false
30
+ Metrics/BlockLength:
31
+ Enabled: false
data/.travis.yml CHANGED
@@ -2,11 +2,12 @@ sudo: false
2
2
  language: ruby
3
3
  cache: bundler
4
4
  rvm:
5
- - 2.1
6
5
  - 2.2
6
+ - 2.3
7
+ - 2.4
7
8
 
8
9
  before_install:
9
- - gem install bundler --version 1.12.5 --no-document
10
+ - gem install bundler --no-document
10
11
 
11
12
  script:
12
13
  - bundle exec rubocop
data/Berksfile.lock CHANGED
@@ -3,64 +3,56 @@ DEPENDENCIES
3
3
  path: config/vm/cookbooks/dkdeploy-typo3-cms
4
4
 
5
5
  GRAPH
6
- apache2 (3.2.2)
6
+ apache2 (5.0.1)
7
7
  apt (3.0.0)
8
- build-essential (4.0.0)
9
- mingw (>= 0.0.0)
8
+ build-essential (8.0.3)
9
+ mingw (>= 1.1)
10
10
  seven_zip (>= 0.0.0)
11
- chef-sugar (3.3.0)
12
- chef_handler (1.4.0)
13
- compat_resource (12.10.1)
11
+ compat_resource (12.19.0)
14
12
  database (5.1.2)
15
13
  postgresql (>= 1.0.0)
16
14
  dkdeploy-typo3-cms (1.0.0)
17
- apache2 (~> 3.2)
15
+ apache2 (~> 5.0.1)
18
16
  apt (~> 3.0)
19
17
  database (~> 5.1)
20
- mysql (~> 6.1)
18
+ mysql (~> 8.5.1)
21
19
  mysql2_chef_gem (~> 1.0)
22
- php (~> 1.9)
23
- iis (4.1.7)
24
- windows (>= 1.34.6)
25
- mariadb (0.3.1)
20
+ php (~> 4.5.0)
21
+ inifile_chef_gem (0.1.0)
22
+ build-essential (>= 0.0.0)
23
+ mariadb (1.5.2)
26
24
  apt (>= 0.0.0)
25
+ build-essential (>= 0.0.0)
26
+ selinux_policy (~> 2.0)
27
27
  yum (>= 0.0.0)
28
28
  yum-epel (>= 0.0.0)
29
- mingw (1.0.0)
30
- compat_resource (>= 0.0.0)
29
+ yum-scl (>= 0.0.0)
30
+ mingw (2.0.1)
31
31
  seven_zip (>= 0.0.0)
32
- mysql (6.1.3)
33
- smf (>= 0.0.0)
34
- yum-mysql-community (>= 0.0.0)
32
+ mysql (8.5.1)
35
33
  mysql2_chef_gem (1.1.0)
36
34
  build-essential (>= 0.0.0)
37
35
  mariadb (>= 0.0.0)
38
36
  mysql (>= 6.0)
39
- openssl (4.4.0)
40
- chef-sugar (>= 3.1.1)
41
- php (1.9.0)
37
+ ohai (5.2.0)
38
+ openssl (7.1.0)
39
+ php (4.5.0)
42
40
  build-essential (>= 0.0.0)
43
- iis (>= 0.0.0)
44
41
  mysql (>= 6.0.0)
45
- windows (>= 1.39.1)
46
- xml (>= 0.0.0)
47
42
  yum-epel (>= 0.0.0)
48
- postgresql (4.0.6)
49
- apt (>= 1.9.0)
50
- build-essential (>= 0.0.0)
51
- openssl (~> 4.0)
52
- rbac (1.0.3)
53
- seven_zip (2.0.0)
43
+ postgresql (6.1.1)
44
+ build-essential (>= 2.0.0)
45
+ compat_resource (>= 12.16.3)
46
+ openssl (>= 4.0)
47
+ selinux_policy (2.0.1)
48
+ compat_resource (>= 12.16.3)
49
+ seven_zip (2.0.2)
54
50
  windows (>= 1.2.2)
55
- smf (2.2.8)
56
- rbac (>= 1.0.1)
57
- windows (1.41.0)
58
- chef_handler (>= 0.0.0)
59
- xml (2.0.0)
60
- build-essential (>= 0.0.0)
61
- chef-sugar (>= 0.0.0)
62
- yum (3.10.0)
63
- yum-epel (0.7.0)
64
- yum (>= 3.6.3)
65
- yum-mysql-community (0.2.0)
66
- yum (>= 3.2)
51
+ windows (3.2.0)
52
+ ohai (>= 4.0.0)
53
+ yum (5.0.1)
54
+ yum-epel (2.1.2)
55
+ compat_resource (>= 12.16.3)
56
+ yum-scl (0.2.0)
57
+ inifile_chef_gem (>= 0.0.0)
58
+ yum (>= 0.0.0)
data/CHANGELOG.md CHANGED
@@ -3,10 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ ## [8.0.0] - 2018-02-09
7
+ ### Summary
8
+
9
+ - rubocop upgrade to 0.50
10
+ - ruby upgrade to 2.2
11
+ - bundler upgrade
12
+ - rake upgrade
13
+ - dkdeploy-test_environment upgrade to 2.0
14
+ - dkdeploy-core upgrade 9.0
15
+ - dkdeploy-php upgrade 8.0
16
+ - Add dependencies for `cucumber`, `rubocop`, `aruba` and `mysql2`
17
+ - upgrade vagrant box to `ubuntu/xenial64`
18
+ - update TYPO3 8.7
19
+ - dropped support for TYPO3 7.6
20
+ - moving deploy tasks from step_definitions/typo3.rb to deploy.rb for the testing
21
+ - Add TYPO3 specific configuration for assets and database
22
+
6
23
  ## [7.0.0] - 2017-01-16
7
24
  ### Summary
8
25
 
9
26
  - first public release
10
27
 
11
28
  [Unreleased]: https://github.com/dkdeploy/dkdeploy-typo3-cms/compare/master...develop
29
+ [8.0.0]: https://github.com/dkdeploy/dkdeploy-typo3-cms/releases/tag/v8.0.0
12
30
  [7.0.0]: https://github.com/dkdeploy/dkdeploy-typo3-cms/releases/tag/v7.0.0
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2016 dkd Internet Service GmbH, Frankfurt am Main (Germany), https://dkd.de
1
+ Copyright (c) 2014-2018 dkd Internet Service GmbH, Frankfurt am Main (Germany), https://dkd.de
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
4
 
data/README.md CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  # Dkdeploy::Typo3::Cms
4
4
 
5
- [![Build Status](https://api.travis-ci.org/dkdeploy/dkdeploy-typo3-cms.svg?branch=master)](https://travis-ci.org/repositories/dkdeploy/dkdeploy-typo3-cms)
6
- [![Gem Version](https://badge.fury.io/rb/dkdeploy-typo3-cms.svg)](https://badge.fury.io/rb/dkdeploy-typo3-cms) [![Inline docs](http://inch-ci.org/github/dkdeploy/dkdeploy-typo3-cms.svg?branch=master)](http://inch-ci.org/github/dkdeploy/dkdeploy-typo3-cms)
5
+ [![Build Status](https://travis-ci.org/dkdeploy/dkdeploy-typo3-cms.svg?branch=master)](https://travis-ci.org/dkdeploy/dkdeploy-typo3-cms)
6
+ [![Gem Version](https://badge.fury.io/rb/dkdeploy-typo3-cms.svg)](https://badge.fury.io/rb/dkdeploy-typo3-cms) [![Inline docs](http://inch-ci.org/github/dkdeploy/dkdeploy-typo3-cms.svg?branch=develop)](http://inch-ci.org/github/dkdeploy/dkdeploy-typo3-cms)
7
7
 
8
8
  ## Description
9
9
 
@@ -13,7 +13,7 @@ dkdeploy-typo3-cms ruby gem represents the extension of [Capistrano](http://capi
13
13
 
14
14
  Add this line to your application's `Gemfile`
15
15
 
16
- gem 'dkdeploy-typo3-cms', '~> 7.0'
16
+ gem 'dkdeploy-typo3-cms', '~> 8.0'
17
17
 
18
18
  and then execute
19
19
 
@@ -46,7 +46,7 @@ Certainly you have to adjust `config/deploy.rb` and respective stages and custom
46
46
 
47
47
  As next you have to append the following line to the `Capfile` in order to make use of dkdeploy extensions in addition to the standard Capistrano tasks:
48
48
 
49
- require 'capistrano/dkdeploy/typo3-cms'
49
+ require 'capistrano/dkdeploy/typo3_cms'
50
50
 
51
51
  To convince yourself, that Capistrano tasks list has benn extended, please run
52
52
 
@@ -77,7 +77,7 @@ Add the virtual box alias to your `hosts` file
77
77
  ## Contributing
78
78
 
79
79
  1. Install [git flow](https://github.com/nvie/gitflow)
80
- 2. Install [Homebrew](http://brew.sh/) and run `brew install mysql-connector-c`
80
+ 2. Install [Homebrew](http://brew.sh/) and run `brew install mysql`
81
81
  3. If project is not checked out already do git clone `git@github.com:dkdeploy/dkdeploy-typo3-cms.git`
82
82
  4. Checkout origin develop branch (`git checkout --track -b develop origin/develop`)
83
83
  5. Git flow initialize `git flow init -d`
data/Vagrantfile CHANGED
@@ -5,32 +5,25 @@ unless Vagrant.has_plugin?('vagrant-berkshelf')
5
5
  abort
6
6
  end
7
7
 
8
- unless Vagrant.has_plugin?('vagrant-omnibus')
9
- puts "Please install vagrant plugin vagrant-omnibus first\n"
10
- puts " vagrant plugin install vagrant-omnibus\n\n"
11
- puts "Exit vagrant\n\n"
12
- abort
13
- end
14
-
8
+ Vagrant.require_version '~> 2.0.0'
15
9
  chef_version = '12.9.41'
16
10
 
17
- Vagrant.require_version '>= 1.8.1'
18
-
19
- Vagrant.configure('2') do |config|
11
+ Vagrant.configure(2) do |config|
20
12
  domain = 'dkdeploy-typo3-cms.dev'
21
13
  ip_address = '192.168.156.183'
22
14
 
23
- config.vm.box = 'ubuntu/trusty64'
15
+ config.vm.box = 'ubuntu/xenial64'
24
16
  config.vm.box_check_update = false
25
-
26
17
  config.berkshelf.enabled = true
27
- config.omnibus.chef_version = chef_version
28
18
 
29
19
  config.vm.define 'dkdeploy-typo3-cms', primary: true do |master_config|
30
20
  master_config.vm.network 'private_network', ip: ip_address
21
+
22
+ # Chef settings
31
23
  master_config.vm.provision :chef_solo do |chef|
32
- chef.install = false # omnibus does it already
33
24
  chef.version = chef_version
25
+ chef.install = true
26
+ chef.channel = 'stable'
34
27
  chef.log_level = :info
35
28
  chef.add_recipe 'dkdeploy-typo3-cms'
36
29
 
@@ -4,9 +4,9 @@ license 'MIT'
4
4
  description 'Project cookbook'
5
5
  version '1.0'
6
6
 
7
- depends 'mysql', '~> 6.1'
7
+ depends 'mysql', '~> 8.5.1'
8
8
  depends 'mysql2_chef_gem', '~> 1.0'
9
9
  depends 'database', '~> 5.1'
10
- depends 'apache2', '~> 3.2'
11
- depends 'php', '~> 1.9'
10
+ depends 'apache2', '~> 5.0.1'
11
+ depends 'php', '~> 4.5.0'
12
12
  depends 'apt', '~> 3.0' # version 2.9 is causing dependency issues
@@ -15,7 +15,7 @@ end
15
15
  group 'www-data' do
16
16
  action :create
17
17
  append true
18
- members 'vagrant'
18
+ members 'ubuntu'
19
19
  end
20
20
 
21
21
  # PHP
@@ -24,7 +24,7 @@ include_recipe 'php::module_mysql'
24
24
 
25
25
  # Apache
26
26
  include_recipe 'apache2'
27
- include_recipe 'apache2::mod_php5'
27
+ include_recipe 'apache2::mod_php'
28
28
 
29
29
  # install apache2-utils. It is needed for the assets:add_htpasswd task
30
30
  package 'apache2-utils' do
@@ -64,7 +64,7 @@ mysql_database 'dkdeploy_typo3_cms' do
64
64
  end
65
65
 
66
66
  directory '/var/www/' do
67
- owner 'vagrant' # deployment is done by vagrant user
67
+ owner 'ubuntu' # deployment is done by ubuntu user
68
68
  group 'www-data' # apache2 is executed by www-data and needs access to directory
69
69
  mode '0770'
70
70
  action :create
@@ -1,4 +1,3 @@
1
- # coding: utf-8
2
1
  lib = File.expand_path('../lib', __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require 'dkdeploy/typo3/cms/version'
@@ -7,11 +6,11 @@ Gem::Specification.new do |spec|
7
6
  spec.name = 'dkdeploy-typo3-cms'
8
7
  spec.version = Dkdeploy::Typo3::Cms::Version
9
8
  spec.authors = ['Kieran Hayes', 'Timo Webler', 'Nicolai Reuschling', 'Luka Lüdicke']
10
- spec.email = %w(kieran.hayes@dkd.de timo.webler@dkd.de nicolai.reuschling@dkd.de luka.luedicke@dkd.de)
9
+ spec.email = %w[kieran.hayes@dkd.de timo.webler@dkd.de nicolai.reuschling@dkd.de luka.luedicke@dkd.de]
11
10
  spec.description = 'dkd TYPO3 deployment tasks and strategies'
12
11
  spec.summary = 'dkd TYPO3 deployment tasks and strategies'
13
12
  spec.homepage = 'https://github.com/dkdeploy/dkdeploy-typo3-cms'
14
- spec.required_ruby_version = '~> 2.1'
13
+ spec.required_ruby_version = '~> 2.2'
15
14
  spec.license = 'MIT'
16
15
 
17
16
  spec.files = `git ls-files`.split($/)
@@ -19,11 +18,14 @@ Gem::Specification.new do |spec|
19
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)\/})
20
19
  spec.require_paths = ['lib']
21
20
 
22
- spec.add_development_dependency 'bundler', '~> 1.12.5'
23
- spec.add_development_dependency 'rake', '~> 11.2'
24
- spec.add_development_dependency 'rubocop', '~> 0.46'
25
- spec.add_development_dependency 'dkdeploy-test_environment', '~> 1.0'
21
+ spec.add_development_dependency 'bundler'
22
+ spec.add_development_dependency 'rake'
23
+ spec.add_development_dependency 'cucumber', '~> 2.4'
24
+ spec.add_development_dependency 'rubocop', '0.50.0'
25
+ spec.add_development_dependency 'aruba', '~> 0.14.1'
26
+ spec.add_development_dependency 'mysql2', '~> 0.3'
27
+ spec.add_development_dependency 'dkdeploy-test_environment', '~> 2.0'
26
28
 
27
- spec.add_dependency 'dkdeploy-php', '~> 7.0'
29
+ spec.add_dependency 'dkdeploy-php', '~> 8.0'
28
30
  spec.add_dependency 'phpass-ruby', '~> 0.1'
29
31
  end
data/features/cli.feature CHANGED
@@ -3,59 +3,50 @@ Feature: Test tasks for namespace 'typo3:cms:cli:run'
3
3
  Background:
4
4
  Given a test app with the default configuration
5
5
  And the remote server is cleared
6
- And the project is deployed
6
+ And a successfully deployed TYPO3 application
7
7
 
8
8
  Scenario: Running one time
9
9
  And I extend the development capistrano configuration from the fixture file cli_test_tasks.rb
10
10
  When I successfully run `cap dev typo3:cms:cli:break_after_one_run`
11
- Then the output should contain "Running cli task for the 1. time"
12
- And the output should not contain "Running cli task for the 2. time"
13
- And the output should contain "Breaking loop after 1 run because block yields false"
11
+ Then the output from "cap dev typo3:cms:cli:break_after_one_run" should contain "Running cli task for the 1. time"
12
+ And the output from "cap dev typo3:cms:cli:break_after_one_run" should not contain "Running cli task for the 2. time"
13
+ And the output from "cap dev typo3:cms:cli:break_after_one_run" should contain "Breaking loop after 1 run because block yields false"
14
14
 
15
15
  Scenario: Running several times
16
16
  And I extend the development capistrano configuration from the fixture file cli_test_tasks.rb
17
17
  When I successfully run `cap dev typo3:cms:cli:break_after_three_runs`
18
- Then the output should contain "Running cli task for the 1. time"
19
- And the output should contain "Running cli task for the 2. time"
20
- And the output should contain "Running cli task for the 3. time"
21
- And the output should contain "Maximum number of cli calls reached!"
22
- And the output should not contain "Breaking loop after 1 run because block yields false"
23
- And the output should not contain "Breaking loop after 2 run because block yields false"
24
- And the output should not contain "Breaking loop after 3 run because block yields false"
18
+ Then the output from "cap dev typo3:cms:cli:break_after_three_runs" should contain "Running cli task for the 1. time"
19
+ And the output from "cap dev typo3:cms:cli:break_after_three_runs" should contain "Running cli task for the 2. time"
20
+ And the output from "cap dev typo3:cms:cli:break_after_three_runs" should contain "Running cli task for the 3. time"
21
+ And the output from "cap dev typo3:cms:cli:break_after_three_runs" should contain "Maximum number of cli calls reached!"
22
+ And the output from "cap dev typo3:cms:cli:break_after_three_runs" should not contain "Breaking loop after 1 run because block yields false"
23
+ And the output from "cap dev typo3:cms:cli:break_after_three_runs" should not contain "Breaking loop after 2 run because block yields false"
24
+ And the output from "cap dev typo3:cms:cli:break_after_three_runs" should not contain "Breaking loop after 3 run because block yields false"
25
25
 
26
26
  Scenario: Running one time in release path
27
27
  And I extend the development capistrano configuration from the fixture file cli_break_after_one_run_in_release_path.rb
28
28
  When I successfully run `cap dev deploy`
29
- Then the output should contain "Running cli task for the 1. time"
30
- And the output should not contain "Running cli task for the 2. time"
31
- And the output should contain "Breaking loop after 1 run because block yields false"
29
+ Then the output from "cap dev deploy" should contain "Running cli task for the 1. time"
30
+ And the output from "cap dev deploy" should not contain "Running cli task for the 2. time"
31
+ And the output from "cap dev deploy" should contain "Breaking loop after 1 run because block yields false"
32
32
 
33
33
  Scenario: Running several times in release path
34
34
  And I extend the development capistrano configuration from the fixture file cli_break_after_three_runs_in_release_path.rb
35
35
  When I successfully run `cap dev deploy`
36
- Then the output should contain "Running cli task for the 1. time"
37
- And the output should contain "Running cli task for the 2. time"
38
- And the output should contain "Running cli task for the 3. time"
39
- And the output should contain "Maximum number of cli calls reached!"
40
- And the output should not contain "Breaking loop after 1 run because block yields false"
41
- And the output should not contain "Breaking loop after 2 run because block yields false"
42
- And the output should not contain "Breaking loop after 3 run because block yields false"
36
+ Then the output from "cap dev deploy" should contain "Running cli task for the 1. time"
37
+ And the output from "cap dev deploy" should contain "Running cli task for the 2. time"
38
+ And the output from "cap dev deploy" should contain "Running cli task for the 3. time"
39
+ And the output from "cap dev deploy" should contain "Maximum number of cli calls reached!"
40
+ And the output from "cap dev deploy" should not contain "Breaking loop after 1 run because block yields false"
41
+ And the output from "cap dev deploy" should not contain "Breaking loop after 2 run because block yields false"
42
+ And the output from "cap dev deploy" should not contain "Breaking loop after 3 run because block yields false"
43
43
 
44
44
  Scenario: Checking injected environment variables
45
+ And I extend the development capistrano configuration from the fixture file cli_test_tasks_variable_injection.rb
45
46
  When I successfully run `cap dev typo3:cms:cli:run`
46
- Then the output should contain "TYPO3_COMPOSER_AUTOLOAD=1"
47
+ Then the output from "cap dev typo3:cms:cli:run" should contain "CUSTOM_VARIABLE=1"
47
48
 
48
49
  Scenario: Checking injected environment variables in release path
49
50
  And I extend the development capistrano configuration from the fixture file cli_test_tasks_with_path.rb
50
51
  When I successfully run `cap dev deploy`
51
- # Here in the regex string "any character" is used to match the slashes. Every attempt to use the directory slashes failed for unknown reasons
52
- Then the output should match /.var.www.dkdeploy.releases.\d{4}-\d{2}-\d{2}-\d{2}-\d{2}-\d{2}.typo3.cli_dispatch\.phpsh/
53
- And the output should contain "TYPO3_COMPOSER_AUTOLOAD=1"
54
-
55
- Scenario: Checking injected environment variables
56
- When I successfully run `cap dev typo3:cms:cli:upload_wrapper`
57
- Then the remote file "current_path/typo3_cms_cli_dispatch.sh" should contain exactly:
58
- """
59
- #!/usr/bin/env bash
60
- TYPO3_COMPOSER_AUTOLOAD='1' TERM='screen-256color' /usr/bin/env php /var/www/dkdeploy/current/typo3/cli_dispatch.phpsh $@
61
- """
52
+ And the output should contain "CUSTOM_VARIABLE=1"
@@ -1,4 +1,4 @@
1
- Given(/^the TYPO3 table be_users exists$/) do # rubocop:disable Metrics/BlockLength
1
+ Given(/^the TYPO3 table be_users exists$/) do
2
2
  mysql_client = instantiate_mysql_client @database_name
3
3
  mysql_client.query 'DROP TABLE IF EXISTS be_users;'
4
4
  mysql_client.query "CREATE TABLE be_users (
@@ -6,13 +6,15 @@ Given(/^the TYPO3 table be_users exists$/) do # rubocop:disable Metrics/BlockLen
6
6
  pid int(11) unsigned DEFAULT '0' NOT NULL,
7
7
  tstamp int(11) unsigned DEFAULT '0' NOT NULL,
8
8
  username varchar(50) DEFAULT '' NOT NULL,
9
+ description varchar(2000) DEFAULT '' NOT NULL,
10
+ avatar int(11) unsigned NOT NULL default '0',
9
11
  password varchar(100) DEFAULT '' NOT NULL,
10
12
  admin tinyint(4) unsigned DEFAULT '0' NOT NULL,
11
13
  usergroup varchar(255) DEFAULT '' NOT NULL,
12
14
  disable tinyint(1) unsigned DEFAULT '0' NOT NULL,
13
15
  starttime int(11) unsigned DEFAULT '0' NOT NULL,
14
16
  endtime int(11) unsigned DEFAULT '0' NOT NULL,
15
- lang char(2) DEFAULT '' NOT NULL,
17
+ lang varchar(6) DEFAULT '' NOT NULL,
16
18
  email varchar(80) DEFAULT '' NOT NULL,
17
19
  db_mountpoints text,
18
20
  options tinyint(4) unsigned DEFAULT '0' NOT NULL,
@@ -21,7 +23,7 @@ Given(/^the TYPO3 table be_users exists$/) do # rubocop:disable Metrics/BlockLen
21
23
  realName varchar(80) DEFAULT '' NOT NULL,
22
24
  userMods text,
23
25
  allowed_languages varchar(255) DEFAULT '' NOT NULL,
24
- uc mediumtext,
26
+ uc mediumblob,
25
27
  file_mountpoints text,
26
28
  file_permissions text,
27
29
  workspace_perms tinyint(3) DEFAULT '1' NOT NULL,
@@ -34,7 +36,7 @@ Given(/^the TYPO3 table be_users exists$/) do # rubocop:disable Metrics/BlockLen
34
36
  usergroup_cached_list text,
35
37
  workspace_id int(11) DEFAULT '0' NOT NULL,
36
38
  workspace_preview tinyint(3) DEFAULT '1' NOT NULL,
37
- category_perms varchar(255) DEFAULT '' NOT NULL,
39
+ category_perms text,
38
40
  PRIMARY KEY (uid),
39
41
  KEY parent (pid),
40
42
  KEY username (username)