```ruby
require 'fileutils'
require 'open3'
require 'pathname'
require 'cmd_common'

RSpec.describe 'murano domain', :cmd, :needs_password do
  include_context "CI_CMD"

  before(:example) do
    @product_name = rname('domainTest')
    out, err, status = Open3.capture3(capcmd('murano', 'product', 'create', @product_name, '--save'))
    expect(err).to eq('')
    expect(out.chomp).to match(/^[a-zA-Z0-9]+$/)
    expect(status.exitstatus).to eq(0)
  end
  after(:example) do
    out, err, status = Open3.capture3(capcmd('murano', 'solution', 'delete', @project_name))
    expect(out).to eq('')
    expect(err).to eq('')
    expect(status.exitstatus).to eq(0)
  end

  it "show domain" do
    out, err, status = Open3.capture3(capcmd('murano', 'domain'))
    expect(out.chomp).to start_with("#{@project_name.downcase}.apps.exosite").and end_with(".io")
    expect(err).to eq('')
    expect(status.exitstatus).to eq(0)
  end

end

#  vim: set ai et sw=2 ts=2 :
```

Update 'murano domain' check per last week's changes.
user
```ruby
require 'fileutils'
require 'open3'
require 'pathname'
require 'cmd_common'

RSpec.describe 'murano domain', :cmd, :needs_password do
  include_context "CI_CMD"

  before(:example) do
    @product_name = rname('domainTest')
    out, err, status = Open3.capture3(capcmd('murano', 'product', 'create', @product_name, '--save'))
    expect(err).to eq('')
    expect(out.chomp).to match(/^[a-zA-Z0-9]+$/)
    expect(status.exitstatus).to eq(0)
  end
  after(:example) do
    out, err, status = Open3.capture3(capcmd('murano', 'solution', 'delete', @product_name))
    expect(out).to eq('')
    expect(err).to eq('')
    expect(status.exitstatus).to eq(0)
  end

  it "show domain" do
    out, err, status = Open3.capture3(capcmd('murano', 'domain'))
    # 2017-05-31: Previously, the project could be named whatever and
    #   the URI would start with the same.
    #     expect(out.chomp).to start_with("#{@product_name.downcase}.apps.exosite").and end_with(".io")
    #   Now, it's: <ID>.m2.exosite.io, where ID is of the form, "j41fj45hhk82so0os"
    expect(out.split('.', 2)[0]).to match(/^[a-zA-Z0-9]{17}$/)
    expect(out.chomp).to end_with("m2.exosite.io")
    expect(err).to eq('')
    expect(status.exitstatus).to eq(0)
  end

end

#  vim: set ai et sw=2 ts=2 :
```
assistant