Since Mavericks stopped using the deprecated ipfw (as of Mountain Lion), we'll be using pf to allow port forwarding.
####1. anchor file
Create an anchor file under /etc/pf.anchors/<anchor file> with your redirection rule like:
| package org.wkh.learningelasticsearch; | |
| import org.elasticsearch.action.index.IndexResponse; | |
| import org.elasticsearch.action.search.SearchResponse; | |
| import org.elasticsearch.client.Client; | |
| import org.elasticsearch.index.query.QueryBuilders; | |
| import org.elasticsearch.node.Node; | |
| import org.elasticsearch.search.SearchHit; | |
| import org.elasticsearch.search.SearchHits; |
| describe('controllerCtrl', function () { | |
| var $controller, | |
| $rootScope, | |
| $scope; | |
| beforeEach(module('controller')); | |
| beforeEach(inject(function ($injector) { | |
| $controller = $injector.get('$controller'); | |
| $rootScope = $injector.get('$rootScope'); |