Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spec fails: Moonshot::Stack#create #251

Open
yitsushi opened this issue Apr 8, 2019 · 0 comments
Open

spec fails: Moonshot::Stack#create #251

yitsushi opened this issue Apr 8, 2019 · 0 comments

Comments

@yitsushi
Copy link
Contributor

yitsushi commented Apr 8, 2019


  1) Moonshot::Stack#create under normal circumstances when template_s3_bucket is set should call put_object and create_stack with template_url parameter
     Failure/Error:
       s3_client.put_object(
         bucket: @config.template_s3_bucket,
         key: s3_object_key,
         body: template.body
       )

       #<InstanceDouble(Aws::S3::Client) (anonymous)> received :put_object with unexpected arguments
         expected: (hash_including(:bucket=>"rspec-bucket", :key=>"rspec-app-staging-1483228800-template.yml", :body=>"an instance of String"))
              got: ({:body=>"---\n- Resources: \n- Parameters:\n  - Parent1:\n    - Type: String\n    - Description: This...ent stack on create.\n", :bucket=>"rspec-bucket", :key=>"rspec-app-staging-1483225200-template.yml"})
       Diff:
       @@ -1,2 +1,5 @@
       -["hash_including(:bucket=>\"rspec-bucket\", :key=>\"rspec-app-staging-1483228800-template.yml\", :body=>\"an instance of String\")"]
       +[{:body=>
       +   "---\n- Resources: \n- Parameters:\n  - Parent1:\n    - Type: String\n    - Description: This is imported from the parent stack on create.\n",
       +  :bucket=>"rspec-bucket",
       +  :key=>"rspec-app-staging-1483225200-template.yml"}]

     # ./lib/moonshot/stack.rb:188:in `block in upload_template_to_s3'
     # ./lib/moonshot/stack.rb:187:in `upload_template_to_s3'
     # ./lib/moonshot/stack.rb:207:in `create_stack'
     # ./lib/moonshot/stack.rb:30:in `block in create'
     # ./lib/moonshot/stack.rb:25:in `create'
     # ./spec/moonshot/stack_spec.rb:124:in `block (5 levels) in <top (required)>'
@yitsushi yitsushi mentioned this issue Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant