Giter VIP home page Giter VIP logo

integrationtests's People

Contributors

drieseng avatar wojciechnagorski avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

integrationtests's Issues

KeyboardInteractive_PasswordExpired fails and corrupts container state

KeyboardInteractive_PasswordExpired fails on my container with:

Assert.AreEqual failed. Expected:<0>. Actual:<1>. passwd: unrecognized option: expire
BusyBox v1.34.1 (2021-11-23 00:57:35 UTC) multi-call binary.

Usage: passwd [-a ALG] [-dlu] [USER]

Change USER's password (default: current user)

	-a ALG	des,md5,sha256/512 (default sha512)
	-d	Set password to ''
	-l	Lock (disable) account
	-u	Unlock (enable) account

Additionally, this leaves the sshuser with a random password. To avoid this, we should:

  • reset the password in the TestInitialize phase
  • reset the password in catch block in KeyboardInteractive_PasswordExpired
    I think this way regardless if the tests are interrupted we will return to the defined state.

I can try to fix this if you want?

DisableHostNetworkConnection requires UAC elevation

If your system has UAC enabled and you run VS normal/unelevated, the DisableHostNetworkConnection calls fail with:

System.ApplicationException: Failed to disable 'Ethernet 2' network connection. Return value is 5.
Make sure you're running the tests with elevated priviliges.

Could we mark tests as inconclusive instead of failing them in this case?
DisableHostNetworkConnection could use new Win32Exception(retValue), this would provide better error information.

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.