mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-08 15:51: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.
12 lines
519 B
Ruby
12 lines
519 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative "../spec_helper"
|
|
|
|
RSpec.describe Clover, "cli kc rename" do
|
|
it "renames kubernetes cluster" do
|
|
expect(Config).to receive(:kubernetes_service_project_id).and_return(@project.id).at_least(:once)
|
|
cli(%W[kc eu-central-h1/test-kc create -c 1 -z standard-2 -w 1 -v v1.32])
|
|
expect(cli(%W[kc eu-central-h1/test-kc rename new-name])).to eq "Kubernetes cluster renamed to new-name\n"
|
|
expect(KubernetesCluster.select_order_map(:name)).to eq ["new-name"]
|
|
end
|
|
end
|