# File lib/fog/identity/openstack/v2/requests/create_ec2_credential.rb, line 38
          def create_ec2_credential(user_id, tenant_id)
            response = Excon::Response.new
            response.status = 200

            data = {
              'access'    => Fog::Mock.random_hex(32),
              'secret'    => Fog::Mock.random_hex(32),
              'tenant_id' => tenant_id,
              'user_id'   => user_id,
            }

            self.data[:ec2_credentials][user_id][data['access']] = data

            response.body = {'credential' => data}

            response
          end