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

Remove tests #207

Merged
merged 2 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions spec/hatchet/app_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,6 @@
expect(app.platform_api.app.info(app.name)["build_stack"]["name"]).to eq(stack)
end

it "create app with HATCHET_DEFAULT_STACK set" do
begin
original_default_stack = ENV["HATCHET_DEFAULT_STACK"]
default_stack = "heroku-18"
ENV["HATCHET_DEFAULT_STACK"] = default_stack
app = Hatchet::App.new("default_ruby")
app.create_app
expect(app.platform_api.app.info(app.name)["build_stack"]["name"]).to eq(default_stack)
ensure
ENV["HATCHET_DEFAULT_STACK"] = original_default_stack
end
end

describe "before deploy" do
it "dir" do
@called = false
Expand Down
17 changes: 0 additions & 17 deletions spec/hatchet/ci_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,4 @@

expect(@before_deploy_dir_pwd).to_not eq(Dir.pwd)
end

it "ci create app with stack" do
pending("upgrade rails 5 app to newer")

app = Hatchet::GitApp.new("rails5_ruby_schema_format")
app.run_ci do |test_run|
expect(test_run.output).to match("Ruby buildpack tests completed successfully")
expect(test_run.status).to eq(:succeeded)
expect(app.pipeline_id).to_not be_nil

api_rate_limit = app.api_rate_limit.call
couplings = api_rate_limit.pipeline_coupling.list_by_pipeline(app.pipeline_id)
coupled_app = api_rate_limit.app.info(couplings.first["app"]["id"])
expect(coupled_app["name"]).to eq(app.name)
end
expect(app.pipeline_id).to be_nil
end
end
Loading