Skip to content

Commit

Permalink
Test ignore_file_extension when expand_keys == false
Browse files Browse the repository at this point in the history
  • Loading branch information
benwebber committed Dec 7, 2016
1 parent 175d262 commit f750471
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/git2consul_ignore_file_extension_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,29 @@ describe('ignore_file_extension', function() {
});
});

it ('should not ignore file extension when expand_keys == false', function(done) {

git_commands.init(git_utils.TEST_REMOTE_REPO, function(err) {
if (err) return done(err);

mkdirp(git_utils.TEST_REMOTE_REPO + 'ignore_file_extension', function(cb) {
if (err) return done(err);

git_utils.addFileToGitRepo('ignore_file_extension/user-service-dev.properties', "default.connection.pool.db.url=jdbc:mysql://db-host:3306/user", "User property file for dev environment added.", function(err) {
if (err) return done(err);

var repo = new Repo(repo_config);

repo.init(function(err) {
if (err) return done(err);
consul_utils.validateValue('test_repo/master/ignore_file_extension/user-service-dev.properties', 'default.connection.pool.db.url=jdbc:mysql://db-host:3306/user', function(err, value) {
if (err) return done(err);
done();
});
});
});
});
});
});

});

0 comments on commit f750471

Please sign in to comment.