def setUp(self):
        super(CredentialsFileReaderTest, self).setUp()
        self.host_paths = DeploymentHostPaths.default()
        self.mock_host_file_system = self.mox.CreateMock(FileSystem)
        self.mock_local_file_system = self.mox.CreateMock(LocalFileSystem)

        self.credentials_file_reader = CredentialsFileReader(DeploymentHostPaths.default(),
                                                             self.mock_host_file_system,
                                                             self.mock_local_file_system)
    def setUp(self):
        super(CredentialsFileReaderTest, self).setUp()
        self.host_paths = DeploymentHostPaths.default()
        self.mock_host_file_system = self.mox.CreateMock(FileSystem)
        self.mock_host_controller = self.mox.CreateMock(RemoteHostController)

        self.credentials_file_reader = CredentialsFileReader(DeploymentHostPaths.default(),
                                                             self.mock_host_file_system,
                                                             self.mock_host_controller)
    def setUp(self):
        super(CredentialsFileReaderTest, self).setUp()
        self.host_paths = DeploymentHostPaths.default()
        self.mock_host_file_system = self.mox.CreateMock(FileSystem)
        self.mock_host_controller = self.mox.CreateMock(RemoteHostController)

        self.credentials_file_reader = CredentialsFileReader(
            DeploymentHostPaths.default(), self.mock_host_file_system,
            self.mock_host_controller)
Exemplo n.º 4
0
    def test_can_use_default_host_paths(self):
        """fab.tests.config.values.deployment_host_paths_test  Can use default host paths"""

        self.assertEqual(DeploymentHostPaths(HostPathValues.DEFAULT), DeploymentHostPaths.default())
    def test_can_create_instance_for_remote_deployment_host(self):
        """fab.tests.config.rsr.credentials.credentials_file_reader_test  Can create CredentialsFileReader instance for a remote deployment host"""

        self._verify_instance_creation_for(DeploymentHostPaths.default(), RemoteHostController)
    def test_can_create_instance_for_remote_deployment_host(self):
        """fab.tests.config.rsr.credentials.credentials_file_reader_test  Can create CredentialsFileReader instance for a remote deployment host"""

        self._verify_instance_creation_for(DeploymentHostPaths.default(),
                                           RemoteHostController)