mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-05 22:31:57 +08:00
This uses a shared route for all 6 objects, as well as shared cli and sdk code. Unfortunately, there is not a way to share such code in openapi.yml, so that part ends up quite verbose. Eventually, we should add a web interface for this, but it's best to wait until we refactor the web interfaces for the objects to consistently use the current postgres web interface.
11 lines
344 B
Ruby
11 lines
344 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative "../spec_helper"
|
|
|
|
RSpec.describe Clover, "cli vm rename" do
|
|
it "renames vm" do
|
|
cli(%w[vm eu-central-h1/test-vm create] << "a a")
|
|
expect(cli(%w[vm eu-central-h1/test-vm rename new-name])).to eq "Virtual machine renamed to new-name\n"
|
|
expect(Vm.first.name).to eq "new-name"
|
|
end
|
|
end
|