Files
ubicloud/spec/model/firewall_rule_spec.rb
Burak Yucesoy e114669438 Remove helsinki region
To complete the removal of the Helsinki region, we also need to create a new
E2E tests host in hetzner-fsn1. However, it is not urgent as the current host
would think that it is in hetzner-fsn1 anyway and continue to work.
2024-11-05 23:47:48 +03:00

19 lines
451 B
Ruby

# frozen_string_literal: true
require_relative "spec_helper"
RSpec.describe FirewallRule do
describe "FirewallRule" do
let(:fw) {
Firewall.create_with_id(location: "hetzner-fsn1")
}
it "returns ip6? properly" do
fw_rule = described_class.create_with_id(cidr: "::/0", firewall_id: fw.id)
expect(fw_rule.ip6?).to be true
fw_rule.update(cidr: "0.0.0.0/0")
expect(fw_rule.ip6?).to be false
end
end
end