我正在用Java编写一个将文件上传到AWS S3的应用程序.该文件将以参数形式提供给应用程序,而不是硬编码.我想编写测试以确保文件实际上传到S3.测试将在TDD代码之前编写.(我实际上已经编写了代码,但我想将TDD实践纳入我的所有工作习惯中)
我到底该怎么做呢?我将使用JUnit,因为这是我最熟悉的.
在此先感谢您的帮助.
我一直在钻研AWS的世界,而且我的服务器管理经验很少,我很快就迷路了!
我正在考虑创建一个使用Route 53,Elastic Load Balancing,EC2,RDS,S3(可能还有CloudFront)的系统,这样我就可以托管一个用户生成的内容网站,该网站也可以流式传输视频.
所以我一直在看以下书籍:
Amazon Web Services编程:S3,EC2,SQS,FPS和SimpleDB
Amazon EC2编程:使用EC2,S3,SQS,SimpleDB和其他服务在Amazon的基础架构上运行应用程序
如果我不得不选择其中一个,你会推荐什么?
最重要的是,您是否可以为像我这样的新手推荐任何资源,以便快速学习和了解AWS的细微差别?
TIA
尝试使用Chef在C:\ Program Files中创建目录时遇到错误.我作为管理员从PowerShell环境运行厨师,因此对于我可以执行的操作不应有任何限制.
食谱/ default.rb
directory node['app']['unzip_path'] do
action :create
end
Run Code Online (Sandbox Code Playgroud)
属性/ default.rb
default['app']['unzip_path'] = 'C:/Program files/App'
我收到这个错误:
[2013-06-25T01:51:13+00:00] FATAL: Chef::Exceptions::InsufficientPermissions: directory[C:/Program files/App] (app::agent line 15) had an error: Chef::Exceptions::InsufficientPermissions: Cannot create directory[C:/Program files/App] at C:/Program files/App due to insufficient permissions
Run Code Online (Sandbox Code Playgroud)
附加问题:chef-solo是作为运行powershell命令的用户运行还是作为特殊的"chef"用户运行
特征
Scenario: As a user that has not signed in I want to be able to sign up for provisioner
Given I am not logged in
When I go to the home page
And click on the "Sign Up" button
Then I should be on the page with the title: "Sign Up"
When I provide valid information
And click the "Submit" button
Then I should see "Account is being created and verified, you will receive an email with instructions once …Run Code Online (Sandbox Code Playgroud) def current_user=(user)
@current_user = user
end
def user_from_remember_token
User.authenticate_with_salt(*remember_token)
end
def remember_token
cookies.signed[:remember_token] || [nil, nil]
end
Run Code Online (Sandbox Code Playgroud)
1)我大多与def current_user =(用户)混淆.什么是= for.我看到它将用户对象作为参数,但是=符号的重点是什么.
2)不确定为什么有一个* infront remember_token.有谁能解释一下?
谢谢