Code Monkey home page Code Monkey logo

docker-neos's People

Contributors

baschny avatar remuslazar avatar

Watchers

 avatar  avatar  avatar

Forkers

baschny

docker-neos's Issues

Fix composer permission denied errors

When trying to configure an access token for composer, this fails with:

Head to https://github.com/settings/tokens/new?scopes=repo&description=xxxxx
to retrieve a token. It will be stored in "/composer/auth.json" for future use by Composer.
Token (hidden): 
                                                                                    
  [ErrorException]                                                                  
  file_put_contents(/composer/auth.json): failed to open stream: Permission denied  
                                                                                    

Race Condition when running Behat unattended

Abstract

There is a race condition when running Behat Tests in "unattended" mode, e.g. using:

docker-compose -f docker-compose.yml -f docker-compose.behat.yml run --rm --service-ports web \
  sudo -u www-data cd /data/www/Packages/Sites/CRON.DavShop/Tests/Behavior /data/www/bin/behat --ansi

Race Condition occurs

What happens, when the race condition occurs:

starting selenium server..
09:05:52.736 INFO - Launching a standalone Selenium Server
09:05:52.793 INFO - Java: IcedTea 25.212-b04
09:05:52.794 INFO - OS: Linux 4.4.0-97-generic amd64
09:05:52.825 INFO - v2.53.0, with Core v2.53.0. Built from revision 35ae25b
09:05:52.976 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform LINUX
09:05:52.979 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped:
registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform LINUX
09:05:52.980 INFO - Driver class not found: com.opera.core.systems.OperaDriver
09:05:52.981 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered
09:05:52.988 INFO - Driver provider org.openqa.selenium.safari.SafariDriver registration is skipped:
registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform LINUX
09:05:52.989 INFO - Driver class not found: org.openqa.selenium.htmlunit.HtmlUnitDriver
09:05:52.990 INFO - Driver provider org.openqa.selenium.htmlunit.HtmlUnitDriver is not registered

Then the test fails:

(..)

    Given I go to "/"                                                # FeatureContext::visit()
      Curl error thrown for http POST to http://localhost:4444/wd/hub/session with params: {"desiredCapabilities":{"browserName":"firefox","version":"8","platform":"ANY","browserVersion":"8","browser":"firefox","name":"Behat test","deviceOrientation":"portrait","deviceType":"tablet"},"requiredCapabilities":[]}
      
      Failed to connect to localhost port 4444: Connection refused

Race Condition does not occur

starting selenium server..
09:09:40.383 INFO - Launching a standalone Selenium Server
09:09:40.438 INFO - Java: IcedTea 25.212-b04
09:09:40.438 INFO - OS: Linux 4.4.0-97-generic amd64
09:09:40.468 INFO - v2.53.0, with Core v2.53.0. Built from revision 35ae25b
09:09:40.606 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform LINUX
09:09:40.609 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped:
registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform LINUX
09:09:40.610 INFO - Driver class not found: com.opera.core.systems.OperaDriver
09:09:40.611 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered
09:09:40.617 INFO - Driver provider org.openqa.selenium.safari.SafariDriver registration is skipped:
registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform LINUX
09:09:40.618 INFO - Driver class not found: org.openqa.selenium.htmlunit.HtmlUnitDriver
09:09:40.618 INFO - Driver provider org.openqa.selenium.htmlunit.HtmlUnitDriver is not registered
09:09:40.738 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
09:09:40.738 INFO - Selenium Server is up and running

Then the test succeeds:

  @javascript
  Scenario: User visits the website for the first time               # Features/IntroBanner.feature:5
09:10:03.724 INFO - Executing: [new session: Capabilities [{deviceType=tablet, browserVersion=8, browser=firefox, name=Behat test, browserName=firefox, deviceOrientation=portrait, version=8, platform=ANY}]])
09:10:03.740 INFO - Creating a new session for Capabilities [{deviceType=tablet, browserVersion=8, browser=firefox, name=Behat test, browserName=firefox, deviceOrientation=portrait, version=8, platform=ANY}]
09:10:07.256 INFO - Done: [new session: Capabilities [{deviceType=tablet, browserVersion=8, browser=firefox, name=Behat test, browserName=firefox, deviceOrientation=portrait, version=8, platform=ANY}]]
09:10:07.736 INFO - Executing: [get: http://behat.dev.local:8080/])
09:10:10.797 INFO - Done: [get: http://behat.dev.local:8080/]
    Given I go to "/"                                                # FeatureContext::visit()
09:10:10.809 INFO - Executing: [execute script: localStorage.setItem("overlay-customers", "0"), []])
09:10:10.836 INFO - Done: [execute script: localStorage.setItem("overlay-customers", "0"), []]
    And I set local storage key "overlay-customers" to "0"           # FeatureContext::iSetLocalStorageKeyTo()

(..)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.