Ejemplo n.º 1
0
    def test_can_create_credentials_for_specified_deployment_user_ssh_id(self):
        """fab.tests.config.rsr.credentials.user_credentials_test  Can create credentials for a given deployment user's SSH ID"""

        self.assertEqual(
            UserCredentials(User.DEPLOYER, SudoPassword.NONE,
                            SSHIDPath.DEFAULT),
            UserCredentials.for_deployer_with_ssh_id(SSHIDPath.DEFAULT))
Ejemplo n.º 2
0
 def create():
     return UserCredentials.for_deployer_with_ssh_id(SSHIDPath.DEPLOYER)
Ejemplo n.º 3
0
    def test_can_create_credentials_for_specified_deployment_user_ssh_id(self):
        """fab.tests.config.rsr.credentials.user_credentials_test  Can create credentials for a given deployment user's SSH ID"""

        self.assertEqual(UserCredentials(User.DEPLOYER, SudoPassword.NONE, SSHIDPath.DEFAULT),
                         UserCredentials.for_deployer_with_ssh_id(SSHIDPath.DEFAULT))