chef-solo 설치

도구 2014. 4. 6. 13:40



Chef Solo 입문-인프라스트럭처 자동화 프레임워크(제이펍의 클라우드 시리즈 8)

저자
이토 나오야 지음
출판사
제이펍 | 2014-02-21 출간
카테고리
컴퓨터/IT
책소개
[서버/인프라를 지탱하는 기술]의 저자 이토 나오야의 신작! D...
가격비교


환경


OS X 10.9.2


knife-solo 설치하다가 에러가 난다.


에러

clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]


대응

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install knife-solo



에러

VBoxManage: error: Failed to create the host-only adapter

VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory


대응

sudo /Library/StartupItems/VirtualBox/VirtualBox restart
vagrant up


'도구' 카테고리의 다른 글

Trello  (0) 2013.02.14
Posted by DevMoon
,

#define It is a my subjective opinion. :)

(Maybe you can see many broken English.. please don't surprise, instead, let me know about the incorrect part. )



Why we need test?

 

Of course, we need test to verify the functions we made are right.


it's includes the real environment.

 

I used to do JUnit test and try to many abnormal methods to verify functions. 

(of course, I always thinking "how can i do test better?")


And I admit the facts below.

 

1. most of all, i want to test which use external resources. 


(in fact, i can get peaceful mind when this test was finished)

 

This test includes many resources such as network, database, and so on.


i'm usually did unit-test for this test.

 

2. For example, when i want to check some data in DB, but data not exist at first time.


Therefore, the insert operations are needed before select operation. however, can we confident that insert operation is success?


If so, how about insert some data to DB manually? (this way is... look so little complex or dirty..)

 

3. I can't think about test layer well.

 

Recently i realized that test have some layers and the below layer's object can be substituted by "mock".

 

So, what is test layer? 


Above picture is appeared in my brain.

 

There are two parts, one is needed test in real environment, another one is can be substituted by mock.


So, i like to summarized below as a result.

 

  • Unit Test: the tests are processed at each layer. and below layers are substituted by mock. 
  • Integration Test: the tests are use external resources. real environment required to do this test. 

And this is what i want to get by test,

 

Check your business logic and program structure by "Unit Test", check your real environment(resources) by "Integration Test"

Link

it is a really good article: The correct way to use integration tests in your build process


'프로그래밍 > JAVA' 카테고리의 다른 글

java goto문  (1) 2013.08.05
Map 읽기 전용으로 만들기  (0) 2013.04.25
Posted by DevMoon
,

lxml 설치하려다 생긴 문제.


OS X 10.9 매버릭스(Mavericks) 로 업그레이드 되면서 생기는 문제인 것같은데.

찾아보다가 해결책을 찾았다. 다음 명령 실행.


xcode-select --install


그런다음에 계속 설치해주면 된다.


sudo pip install lxml


출처: http://stackoverflow.com/questions/19548011/cannot-install-lxml-on-mac-os-x-10-9


TV

Posted by DevMoon
,